【发布时间】:2021-10-01 07:14:52
【问题描述】:
npm7 中 npm6 .npmrc $npm_config_* vars 的替代方法是什么(不推荐使用配置变量)。 脚本中的使用示例:
"package": "sam package --profile $npm_config_awsProfile --template-file template.yaml --s3-bucket $npm_config_s3BucketName --output-template-file template-out.yaml",
.npmrc 示例
awsProfile = "au"
s3BucketName = "production-tmp-bucket-ap-southeast-2"
【问题讨论】:
标签: javascript node.js serverless npm-scripts