diff --git a/package.json b/package.json index ce67b36..eb659be 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "scripts": { "postinstall": "rm -rf dist && make dist/index.js", - "start": "make dist/index.js && node dist/index.js" + "start": "sh ./run.sh" }, "dependencies": { "download": "^8.0.0", diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..a1899f6 --- /dev/null +++ b/run.sh @@ -0,0 +1,7 @@ +#! /bin/sh +export INPUT_VERSION=4.11.1 +export INPUT_DEST=pnpm.temp +export INPUT_BIN_DEST=pnpm.temp/.bin +export INPUT_REGISTRY=https://registry.npmjs.com +make dist/index.js || exit $? +exec node dist/index.js