-
构建:构建 -- 可看到文件末尾有 sourcemap,因为 tsconfig.json 中 "inlineSourceMap": true,
-
添加生成 patches 文件的调试配置 -- 断点(可以打在命令的输出信息上) -- 调试
{ "name": "调试 patch-package", "request": "launch", "program": "${workspaceFolder}/dist/index.js", // "runtimeArgs": [ // "run-script", // "debug" // ], "console": "integratedTerminal", // 修改的包名 "args": ["acorn"], // "runtimeExecutable": "npm", "skipFiles": ["<node_internals>/**"], "type": "node" }
-
添加由 paches 文件修改 node_modules 中包代码的调试配置 -- 断点 -- 调试
{ "name": "调试 patch-package apply", "program": "${workspaceFolder}/dist/index.js", "request": "launch", "skipFiles": ["<node_internals>/**"], "console": "integratedTerminal", "type": "node" }
forked from ds300/patch-package
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix broken node modules instantly 🏃🏽♀️💨
License
yudidayeye/patch-package
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Fix broken node modules instantly 🏃🏽♀️💨
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- TypeScript 80.9%
- Shell 17.9%
- JavaScript 1.2%