Skip to content

[RRFC] npm init add a new question: type => "commonjs/module" #620

Description

@aladdin-add

Motivation ("The Why")

As more devs are going to use esm, while the default is commonjs. users have to manually add the field after creating.

Example

How

Current Behaviour

package name: (xxx) 
version: (1.0.0) 
description: 
entry point: (index.js) 
test command: 
git repository: 
keywords: 
license: (ISC) 

Desired Behaviour

package name: (xxx) 
version: (1.0.0) 
description: 
type: commonjs/module  ----- new added item.
entry point: (index.js) 
test command: 
git repository: 
keywords: 
license: (ISC) 

References

  • n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions