title: Can you set aliases for npm scripts inside package.json?
body: <p>I have a project written in <code>Typescript</code> </p>
  
  <p><strong>When developing Locally:</strong></p>
  
  <p><code>ts-node</code> is installed as a dev-dependency, The commands are </p>
  
  <pre><code>  to start: "ts-node src/index"
    to init: "ts-node bin/init"
    to init db: "ts-node bin/database-init"
    to migrate db: "ts-node bin/database-migrate"
    to add users: "ts-node bin/add-users"
  </code></pre>
  
  <p><strong>When Deployed:</strong> </p>
  
  <p>dev-dependencies are dropped, app is transpiled, the commands are</p>
  
  <pre><code>  to start: "node src/index"
    to init: "node bin/init"
    to init db: "node bin/database-init"
    to migrate db: "node bin/database-migrate"
    to add users: "node bin/add-users"
  </code></pre>
  
  <hr>
  
  <p>Thus I am forced to maintain this in my <code>package.json</code> which will keep growing</p>
  
  <pre><code>"scripts": {
    "start": "ts-node src/index",
    "start:js": "node src/index",
    "init": "ts-node bin/init",
    "init:js": "node bin/init",
    "db:init": "ts-node bin/db-init",
    "db:init:js": "node bin/db-init",
    "db:migrate": "ts-node bin/db-migrate",
    "db:migrate:js": "node bin/db-migrate",
    "add:users": "ts-node bin/add-users",
    "add:users:js": "node bin/add-users"
  },
  </code></pre>
  
  <p>I would much rather have a single command that works in both</p>
  
  <hr>
  
  <p>to do this I have set the following alias in the deployment server</p>
  
  <pre><code>alias ts-node=/usr/bin/node
  </code></pre>
  
  <p>as such all these now works for both..</p>
  
  <pre><code> "scripts": {
    "start": "ts-node src/index",
    "init": "ts-node bin/init",
    "db:init": "ts-node bin/db-init",
    "db:migrate": "ts-node bin/db-migrate",
    "add:users": "ts-node bin/add-users",
  }
  </code></pre>
  
  <p>But this is not a great solution and prevents me from deploying it anywhere else.. I prefer to set the name space for <code>right-node</code> to <code>ts-node || node</code> inside the <code>package.json</code> this way it would be portable.. </p>
  
  <p>I know that the namespace for all dependencies gets added when running <code>npm scripts</code>, So this does happen behind the scenes, but is there any built in functionality to do this manually?</p>