-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
The changes from #8081 introduced a new --init-type
flag that sets the field type
to commonjs
by default, or any user provided string value. This is a good start but has a couple of caveats, namely:
- The default value of
commonjs
is not suitable for new packages, ideally this would default tomodule
as the whole ecosystem is moving to ECMAScript modules, this is especially true for new packages. - There are only two valid options for the
type
field (commonjs
ormodule
), and this field allows free input of text by the user, ideally the user would select from these predefined options only.
atjn, zanminkian, mikemaccana and AugustinMauroyljharb
Metadata
Metadata
Assignees
Labels
No labels