首页 > 其他 > 详细

[NPM] Execute npx commands with $npm_ Environment Variables

时间:2019-03-12 19:28:11      阅读:182      评论:0      收藏:0      [点我收藏+]

We will incorporate npm specific environment variables when executing various npx commands. In our example, we will transpile code to a folder name that matches the version of the current package.

 

"scripts": {
      "build": "babel index.js -d lib/$npm_package_version"
  },

 

output file will be stored in lib/1.0.0/index.js

[NPM] Execute npx commands with $npm_ Environment Variables

原文:https://www.cnblogs.com/Answer1215/p/10518842.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!