We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6740ca3 commit 095067eCopy full SHA for 095067e
packages/@vue/cli/lib/Creator.js
@@ -192,6 +192,13 @@ module.exports = class Creator extends EventEmitter {
192
'README.md': generateReadme(generator.pkg, packageManager)
193
})
194
195
+ // generate a .npmrc file for pnpm, to persist the `shamefully-flatten` flag
196
+ if (packageManager === 'pnpm') {
197
+ await writeFileTree(context, {
198
+ '.npmrc': 'shamefully-flatten=true\n'
199
+ })
200
+ }
201
+
202
// commit initial state
203
let gitCommitFailed = false
204
if (shouldInitGit) {
0 commit comments