Skip to content

Plugin template scaffold generates package.json for easier publish #3548

@kwonoj

Description

@kwonoj

Describe the feature

#3540 (comment)

When we create a plugin via template, we expect it'll be published as npm package in most cases. Having default package.json would be helpful.

We could do

  • create package.json by default
  • having a flag to indicate to create package.json.

For now I'm leaning on first approach, as said expect most of cases we expect plugin will be published as npm pkg and installed next to @swc/core.

Babel plugin or link to the feature description

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions