Skip to content

Commit

Permalink
fix(build): build packages before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 14, 2022
1 parent ad8c9a0 commit 3c4a277
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/browser/package.json
Expand Up @@ -30,7 +30,8 @@
"dev:client": "vite build --watch",
"dev:node": "rollup -c --watch --watch.include=node/**",
"dev": "rimraf dist && run-p dev:node dev:client",
"copy": "esno scripts/copy-ui-to-browser.ts"
"copy": "esno scripts/copy-ui-to-browser.ts",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"local-pkg": "^0.4.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/coverage-c8/package.json
Expand Up @@ -38,7 +38,8 @@
],
"scripts": {
"build": "rimraf dist && rollup -c",
"dev": "rollup -c --watch --watch.include=src/**"
"dev": "rollup -c --watch --watch.include=src/**",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"c8": "^7.12.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/coverage-istanbul/package.json
Expand Up @@ -38,7 +38,8 @@
],
"scripts": {
"build": "rimraf dist && rollup -c",
"dev": "rollup -c --watch --watch.include=src/**"
"dev": "rollup -c --watch --watch.include=src/**",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"istanbul-lib-coverage": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-node/package.json
Expand Up @@ -66,7 +66,7 @@
"scripts": {
"build": "rimraf dist && rollup -c",
"dev": "rollup -c --watch --watch.include=src/** -m inline",
"prepublishOnly": "nr build",
"prepublishOnly": "pnpm build",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/package.json
Expand Up @@ -77,7 +77,7 @@
"scripts": {
"build": "rimraf dist && rollup -c",
"dev": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -c --watch -m inline",
"prepublishOnly": "nr build"
"prepublishOnly": "pnpm build"
},
"peerDependencies": {
"@edge-runtime/vm": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/web-worker/package.json
Expand Up @@ -25,7 +25,7 @@
"scripts": {
"build": "rimraf dist && rollup -c",
"dev": "rollup -c --watch --watch.include=src/**",
"prepublishOnly": "nr build",
"prepublishOnly": "pnpm build",
"typecheck": "tsc --noEmit"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-client/package.json
Expand Up @@ -34,7 +34,7 @@
"scripts": {
"build": "rimraf dist && rollup -c",
"dev": "rollup -c --watch --watch.include=src/**",
"prepublishOnly": "nr build",
"prepublishOnly": "pnpm build",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down

0 comments on commit 3c4a277

Please sign in to comment.