aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-release/scripts/npm-postinstall.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bun-release/scripts/npm-postinstall.ts')
-rw-r--r--packages/bun-release/scripts/npm-postinstall.ts10
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);
+ });