mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
feat(init): initType default value is set to module (#9486)
This commit is contained in:
6
.changeset/shaggy-peaches-shop.md
Normal file
6
.changeset/shaggy-peaches-shop.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/config": major
|
||||
"pnpm": major
|
||||
---
|
||||
|
||||
The default value of the `type` field in the `package.json` file of the project initialized by `pnpm init` command has been changed to `module`.
|
||||
@@ -164,7 +164,7 @@ export async function getConfig (opts: {
|
||||
'ignore-workspace-root-check': false,
|
||||
'optimistic-repeat-install': false,
|
||||
'init-package-manager': true,
|
||||
'init-type': 'commonjs',
|
||||
'init-type': 'module',
|
||||
'inject-workspace-packages': false,
|
||||
'link-workspace-packages': false,
|
||||
'lockfile-include-tarball-url': false,
|
||||
|
||||
Reference in New Issue
Block a user