From b3e67341de96386e02cc1f2d832d217fafbaaca6 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 8 May 2020 12:05:45 +0700 Subject: [PATCH] Create run.sh --- package.json | 2 +- run.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 run.sh 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