Skip to content

Commit

Permalink
fix: distribute VisualEditing component (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhg authored May 23, 2024
1 parent 54dbbb4 commit 4973aa9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/sanity-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"scripts": {
"clean": "rimraf dist && rimraf .turbo && rimraf node_modules",
"dev": "vite build --watch",
"build": "rimraf dist && vite build && npm run copyStudio",
"build": "rimraf dist && vite build && npm run copyStudio && npm run copy:visual-editing",
"prepublishOnly": "npm run build",
"copyStudio": "cp -r src/studio dist/studio"
"copyStudio": "cp -r src/studio dist/studio",
"copy:visual-editing": "cp -r src/visual-editing dist/visual-editing"
},
"files": [
"dist",
"src/studio",
"src/visual-editing",
"module.d.ts"
],
"exports": {
Expand All @@ -25,6 +27,10 @@
"./studio/studio-component.tsx": {
"types": "./src/studio/studio-component.tsx",
"default": "./src/studio/studio-component.tsx"
},
"./visual-editing": {
"import": "./dist/visual-editing/index.ts",
"default": "./dist/visual-editing/index.ts"
}
},
"types": "./dist/types/index.d.ts",
Expand Down

0 comments on commit 4973aa9

Please sign in to comment.