Skip to content

Commit

Permalink
chore: add "prepare" npm script so this works when depended on via gi…
Browse files Browse the repository at this point in the history
…t link (#224)

I added my fork of this repo to my project as a npm git dependency, but it didn't work until I did this.

https://docs.npmjs.com/cli/v10/using-npm/scripts#life-cycle-scripts
> NOTE: If a package being installed through git contains a prepare script, its dependencies and devDependencies will be installed, and the prepare script will be run, before the package is packaged and installed.
  • Loading branch information
gobengo authored Sep 25, 2024
1 parent 84781c2 commit b7c03de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "dist/index.js",
"type": "module",
"scripts": {
"prepare": "tsup",
"test": "bun typecheck && bun test:unit && bun test:integration && bun test:e2e",
"test:unit": "vitest --run ./src",
"test:integration": "bun test:integration:api && bun test:integration:apps",
Expand Down

0 comments on commit b7c03de

Please sign in to comment.