Create run.sh

This commit is contained in:
khai96_ 2020-05-08 12:05:45 +07:00
parent edb17ae08b
commit b3e67341de
2 changed files with 8 additions and 1 deletions

View File

@ -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",

7
run.sh Executable file
View File

@ -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