From f2876ebf454e2b7636463434ae2eb3a5b1863198 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 6 Aug 2024 13:23:24 -0500 Subject: [PATCH] Skip postinstall script in Deno --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9424c3b..588b05a 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "scripts" ], "scripts": { - "postinstall": "node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"", + "postinstall": "which node > /dev/null && node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"", "release": "npx bumpp --tag --commit --push && npm publish" }, "peerDependencies": {