使用patch-package修改node_modules中的第三方包中的问题
修改node_modules中的包做成补丁保存在项目中。
1、安装patch-package包。
npm install patch-package -D2、添加postinstall脚本。
编辑package.json,在scripts中添加脚本。
"scripts": {
"postinstall": "patch-package"
}3、修改node_modules中的包。
修改@terraformer/arcgis。
4、将修改后的包做成补丁。
npx patch-package @terraformer/arcgis5、其他用户应用补丁。
npm install 最后更新于1年前
本文由人工编写,AI优化,转载请注明原文地址: 使用patch-package修改node_modules中的第三方包中的问题
推荐阅读
评论 (0)
发表评论
昵称:加载中...
暂无评论,快来发表第一条评论吧!