nuxt/cli

.npmrc with shamefully-hoist=true still being generated on new Nuxt projects

Celibioux opened this issue · 2 comments

Environment

  • Operating System: Windows_NT
  • Node Version: v20.10.0
  • Nuxt Version: 3.9.0
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: pnpm@8.12.0
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

And
Ubuntu 22.04 with WSL 2

Reproduction

https://github.com/nuxt/starter

Describe the bug

I just was about scaffolding a new Nuxt project for a Monorepo project and i noticed that .npmrc still being generated on Windows and WSL Machine but not on my linux machine is it normale ?

Additional context

No response

Logs

No response

And moving to CLI as these three lines are related:

cli/src/commands/init.ts

Lines 112 to 115 in 1aa5095

// Write `.npmrc` with `shamefully-hoist=true` for pnpm
if (selectedPackageManager === 'pnpm') {
await writeFile(join(template.dir, '.npmrc'), 'shamefully-hoist=true')
}