Skip to content

Commit

Permalink
fix(publish): refactor publish-next
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Dec 11, 2024
1 parent 001cac9 commit a3395f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"watch": "node ./config/concurrently.mjs watch",
"changelog": "conventional-changelog -n ./config/conventionalChangelog/config.cjs -i changelog.md -s",
"bump": "if [ -z $npm_config_level ]; then grunt bump:minor; else grunt bump:$npm_config_level; fi && npm run changelog && npm run update-packages && npm install && git add -A && git commit --amend --no-edit",
"publish-next": "npm run publish-next --workspaces --if-present && npm publish --access public --tag=next --workspaces",
"publish-next": "npm run publish-next --workspaces --if-present",
"publish-latest2": "npm publish --access public --tag=latest --provenance",
"publish-latest3": "npm publish --access public --tag=latest --provenance --workspaces",
"publish-latest": "npm run publish-latest --workspaces --if-present",
Expand Down
2 changes: 1 addition & 1 deletion packages/Geographic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test-with-coverage_lcov": "c8 -n src --reporter=lcov cross-env npm run test-unit",
"watch": "npm run transpile -- --watch",
"publish-latest": "npm publish --access public --tag=latest",
"publish-next": "npm version prerelease --preid next"
"publish-next": "npm version prerelease --preid next && npm publish --access public --tag=next"
},
"files": [
"*.md",
Expand Down
2 changes: 1 addition & 1 deletion packages/Main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepublishOnly": "npx copyfiles -u 1 \"../../examples/**/*\" ./examples/ && npx copyfiles -u 1 \"../../docs/**/*\" ./docs/ && npx copyfiles -u 1 \"../../dist/**/*\" ./dist/ ",
"postpublish": "node clean.cjs",
"publish-latest": "npm publish --access public --tag=latest",
"publish-next": "npm version prerelease --preid next && npm run update-package",
"publish-next": "npm version prerelease --preid next && npm run update-package && npm publish --access public --tag=next",
"update-package": "npm remove @gchoqueux/geographic && npm install @gchoqueux/geographic@$npm_package_version --save"
},
"c8": {
Expand Down
3 changes: 1 addition & 2 deletions packages/Widgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"copy_transpile": "npx copyfiles -u 1 \"./lib/**/*\" ../Main/lib/Utils/gui/",
"transpileOnly": "cross-env BABEL_DISABLE_CACHE=1 babel src --out-dir lib --extensions .js,.ts",
"transpile": "npm run transpileOnly && npm run copy_transpile",
"watch": "npm run transpileOnly -- --watch",
"publish-next": "npm version prerelease --preid next"
"watch": "npm run transpileOnly -- --watch"
},
"files": [
"*.md",
Expand Down

0 comments on commit a3395f7

Please sign in to comment.