Skip to content

Commit

Permalink
fix: github pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRH committed May 17, 2024
1 parent 6946257 commit 1584042
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"getStaticDirs.d.ts"
],
"scripts": {
"build": "node scripts/rm.js dist && tsc --outDir dist/es && babel src --out-dir dist/cjs --extensions '.ts,.tsx'",
"build": "node scripts/rm.js dist && tsc --outDir dist/es && babel src --out-dir dist/cjs --extensions '.ts,.tsx' && node scripts/npmPackDev.js",
"format": "prettier src example/src --write",
"start:example": "node scripts/npmPackDev.js && cd example && npm i ../storybook-addon-code-editor-0.0.0.tgz && npm run storybook:dev",
"start:example": "npm run build && cd example && npm i ../storybook-addon-code-editor-0.0.0.tgz && npm run storybook:dev",
"test": "jest src"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/npmPackDev.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ function exec(command) {
}

(async () => {
await Promise.all([exec('npm run build'), exec('npm pkg set version=0.0.0')]);
await exec('npm pkg set version=0.0.0');
await exec('npm pack');
})().finally(() => exec(`npm pkg set version=${pkgJson.version}`));

0 comments on commit 1584042

Please sign in to comment.