diff options
Diffstat (limited to 'packages/bun-release/scripts/npm-postinstall.ts')
-rw-r--r-- | packages/bun-release/scripts/npm-postinstall.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/bun-release/scripts/npm-postinstall.ts b/packages/bun-release/scripts/npm-postinstall.ts new file mode 100644 index 000000000..bde044300 --- /dev/null +++ b/packages/bun-release/scripts/npm-postinstall.ts @@ -0,0 +1,10 @@ +import { importBun, optimizeBun } from "../src/npm/install"; + +importBun() + .then((path) => { + optimizeBun(path); + }) + .catch((error) => { + console.error(error); + process.exit(1); + }); |