Skip to content

Commit d5c3358

Browse files
authored
move build to pre-publish (#111)
* fix publish * remove trailing quote * no need for npm ignore * only transition to prepub
1 parent bc6e930 commit d5c3358

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

.changeset/ninety-rivers-dance.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@web3-ui/components': patch
3+
'@web3-ui/core': patch
4+
'@web3-ui/hooks': patch
5+
---
6+
7+
move build to prepublishOnly so we also build when someone manually publishes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"example": "yarn workspace example dev",
2929
"build-storybook": "build-storybook",
3030
"chromatic": "chromatic --exit-zero-on-changes",
31-
"publish:npm": "yarn build && yarn changeset publish"
31+
"publish:npm": "yarn changeset publish"
3232
},
3333
"devDependencies": {
3434
"@babel/cli": "^7.16.0",

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"format": "prettier --write \"src/**/*.{ts,tsx,json,js,jsx}\"",
2323
"format:check": "prettier --list-different \"src/**/*.{ts,tsx,json,js,jsx}\"",
2424
"pre-commit-hook": "yarn lint-staged",
25-
"prepublishOnly": "cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
25+
"prepublishOnly": "yarn build && cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
2626
},
2727
"main": "dist/web3-ui-components.cjs.js",
2828
"module": "dist/web3-ui-components.esm.js",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"format": "prettier --write \"src/**/*.{ts,tsx,json,js,jsx}\"",
2323
"format:check": "prettier --list-different \"src/**/*.{ts,tsx,json,js,jsx}\"",
2424
"pre-commit-hook": "yarn lint-staged",
25-
"prepublishOnly": "cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
25+
"prepublishOnly": "yarn build && cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
2626
},
2727
"main": "dist/web3-ui-core.cjs.js",
2828
"module": "dist/web3-ui-core.esm.js",

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"test:watch": "yarn test --watch",
2626
"test:coverage": "jest --coverage --colors --maxWorkers=2",
2727
"pre-commit-hook": "yarn lint-staged",
28-
"prepublishOnly": "cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
28+
"prepublishOnly": "yarn build && cp ../../LICENSE ./LICENSE && cp ../../README.md ./README.md"
2929
},
3030
"main": "dist/web3-ui-hooks.cjs.js",
3131
"module": "dist/web3-ui-hooks.esm.js",

0 commit comments

Comments
 (0)