Skip to content

Commit

Permalink
Chore: Add publish-local script
Browse files Browse the repository at this point in the history
  • Loading branch information
nurulakbaral committed Jul 21, 2024
1 parent 67c9cbb commit e728325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"flush:examples": "node ./scripts/flush-examples.mjs",
"lib:build:project-scaffold": "nx run @cli-toolbox/project-scaffold:lib:build",
"lib:test:project-scaffold": "nx run @cli-toolbox/project-scaffold:lib:test",
"lib:publish:project-scaffold": "pnpm lib:build:project-scaffold && nx run @cli-toolbox/project-scaffold:lib:publish"
"lib:publish:project-scaffold": "pnpm lib:build:project-scaffold && nx run @cli-toolbox/project-scaffold:lib:publish",
"lib:publish-local:project-scaffold": "pnpm lib:build:project-scaffold && nx run @cli-toolbox/project-scaffold:lib:publish-local"
},
"devDependencies": {
"@nx/js": "19.4.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/project-scaffold/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"lib:build": "npx rimraf dist && rollup --config=rollup.config.ts --configPlugin=@rollup/plugin-typescript",
"lib:test": "vitest --reporter=verbose",
"lib:publish": "npm publish ./dist --access public"
"lib:publish": "npm publish ./dist --access public",
"lib:publish-local": "npm publish ./dist --access public --registry http://localhost:4873"
},
"type": "module",
"keywords": [
Expand Down

0 comments on commit e728325

Please sign in to comment.