diff --git a/CHANGELOG.md b/CHANGELOG.md index de67c83..141320f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## v1.1.1 + +- fix permission flags for `yarpm-pnpm` binary, add tests + ## v1.1.0 - add `yarpm-pnpm` binary to prefer `pnpm` over `npm` when run outside of a script diff --git a/bin/yarpm-pnpm.js b/bin/yarpm-pnpm.js old mode 100644 new mode 100755 diff --git a/package.json b/package.json index a30b42b..bb101b8 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ }, "keywords": [ "npm", + "pnpm", "yarn", "npm-scripts", "cross-platform", diff --git a/test.sh b/test.sh index 554e5fc..7eba080 100755 --- a/test.sh +++ b/test.sh @@ -9,7 +9,7 @@ pushd test-project 1>/dev/null npm init -y npm link yarpm -jq '.scripts=(.scripts + { "echo": "echo $(ps -p \"$$\" -o ppid= | xargs ps -o command | tail -n -1)", "yarpm-echo": "yarpm run echo", "yarpm-yarn-echo": "yarpm-yarn run echo" })' package.json > package.$$.json && mv package.$$.json package.json +jq '.scripts=(.scripts + { "echo": "echo $(ps -p \"$$\" -o ppid= | xargs ps -o command | tail -n -1)", "yarpm-echo": "yarpm run echo", "yarpm-pnpm-echo": "yarpm-pnpm run echo", "yarpm-yarn-echo": "yarpm-yarn run echo" })' package.json > package.$$.json && mv package.$$.json package.json unset npm_execpath function run_test { @@ -22,6 +22,8 @@ function run_test { } run_test npm yarpm-echo '^npm foo$' +run_test pnpm yarpm-echo '^.+/pnpm.js run echo foo foo$' +run_test npm yarpm-pnpm-echo '^.+/pnpm run echo foo foo$' run_test yarn yarpm-echo '^.+/yarn.js run echo foo foo$' run_test npm yarpm-yarn-echo '^.+/yarn.js run echo foo foo$'