Skip to content

Commit

Permalink
add prepublish to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb committed Oct 21, 2024
1 parent a59f39c commit 76068aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
"build:react": "cd ./packages/react && npm run build",
"build": "npm run build:css && npm run build:react && npm run build:svelte",
"dev:react": "cd ./packages/react && npm run storybook",
"dev:svelte": "cd ./packages/svelte && npm run dev",
"prepublishOnly": "npm run build"
"dev:svelte": "cd ./packages/svelte && npm run dev"
},
"workspaces": [
"packages/css",
Expand Down
3 changes: 2 additions & 1 deletion packages/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"scripts": {
"build": "npm run build:css && node scripts/build.js",
"build:css": "rm -rf dist/css && sass src/scss:dist/css",
"lint": "stylelint scss/**/*.scss --fix"
"lint": "stylelint scss/**/*.scss --fix",
"prepublishOnly": "npm run build"
},
"type": "module",
"version": "2.0.0-alpha.8"
Expand Down
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"build:storybook": "storybook build",
"compile": "tsc -p .",
"lint": "eslint ./src",
"prepublishOnly": "npm run build",
"storybook": "storybook dev -p 6006",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"package": "svelte-kit sync && svelte-package && publint",
"prepublishOnly": "npm run build",
"preview": "vite preview"
},
"svelte": "./dist/index.js",
Expand Down

0 comments on commit 76068aa

Please sign in to comment.