为适配pnpm和yarn等包管理工具,在template的package.json中新增了resolutions和pnpm.overrides

This commit is contained in:
Pan Qiancheng 2024-11-05 19:50:23 +08:00
parent 86c1eddf3e
commit 2e61fd1e5c
1 changed files with 8 additions and 0 deletions

View File

@ -296,6 +296,14 @@ export function packageJsonContent({
"crypto-browserify": {
"readable-stream": "3.6.2"
}
},
"pnpm": {
"overrides": {
"readable-stream": "3.6.2"
}
},
"resolutions": {
"readable-stream": "3.6.2"
}
}
`;