/run-script-proxy

execute scripts inside package.json with npm or yarn with a simple run command

Primary LanguageJavaScript

run-script-proxy

run-script-proxy calls scripts inside package.json either with npm or yarn (if used) with a simple run command

install

npm

npm i --save-dev run-script-proxy

yarn

yarn add -D run-script-proxy

usage

in package.json scripts you can now use run instead of npm run or yarn

{
  "scripts": {
      "test": "run echo",
      "echo": "echo \"hello world\""
  }
}

see also

yarn-run

Run locally installed node module executables with yarn from command line https://www.npmjs.com/package/yarn-run