Skip to content

Commit 620a9bd

Browse files
authored
chore: fix publish, build vite before plugin-react and plugin-vue (#6988)
1 parent 7b2f0ab commit 620a9bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/plugin-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build-bundle": "esbuild src/index.ts --bundle --platform=node --target=node12 --external:@babel/* --external:@rollup/* --external:resolve --external:react-refresh/* --outfile=dist/index.js && npm run patch-dist",
1919
"patch-dist": "ts-node ../../scripts/patchEsbuildDist.ts dist/index.js viteReact",
2020
"build-types": "tsc -p . --emitDeclarationOnly --outDir temp && api-extractor run && rimraf temp",
21-
"prepublishOnly": "npm run build"
21+
"prepublishOnly": "(cd ../vite && npm run build) && npm run build"
2222
},
2323
"engines": {
2424
"node": ">=12.0.0"

packages/plugin-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build-bundle": "esbuild src/index.ts --bundle --platform=node --target=node12 --external:@vue/compiler-sfc --external:vue/compiler-sfc --external:vite --outfile=dist/index.js & npm run patch-dist",
1717
"patch-dist": "ts-node ../../scripts/patchEsbuildDist.ts dist/index.js vuePlugin",
1818
"build-types": "tsc -p . --emitDeclarationOnly --outDir temp && api-extractor run && rimraf temp",
19-
"prepublishOnly": "npm run build"
19+
"prepublishOnly": "(cd ../vite && npm run build) && npm run build"
2020
},
2121
"engines": {
2222
"node": ">=12.0.0"

0 commit comments

Comments
 (0)