From 0b024e395332f5a5abff949f3a4ca3e6da71dfa8 Mon Sep 17 00:00:00 2001 From: Benjamin Goering <171782+gobengo@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:00:46 -0700 Subject: [PATCH] add "prepare" npm script so this works when depended on via git link 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. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ecba3d1..ca8941b 100644 --- a/package.json +++ b/package.json @@ -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",