Skip to content

Commit

Permalink
chore(scripts): Add several new npm scripts
Browse files Browse the repository at this point in the history
- `prepublishOnly`: Builds the project with '--overwrite' argument.
- `prepack`: Tests the project before packing the project (`npm pack`).
  • Loading branch information
mitsuki31 committed May 21, 2024
1 parent c4349f0 commit 62bce18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"build:docs": "typedoc --options typedoc.config.js",
"test": "node test/lsfnd.spec.cjs && node test/lsfnd.spec.mjs",
"test:cjs": "node test/lsfnd.spec.cjs",
"test:mjs": "node test/lsfnd.spec.mjs"
"test:mjs": "node test/lsfnd.spec.mjs",
"prepublishOnly": "ts-node scripts/build.ts --overwrite",
"prepack": "npm test"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 62bce18

Please sign in to comment.