only-allow-esm

0.0.1 • Public • Published

Only Allow ESM

Force ES Modules to be used on a project.

Usage

Add a postinstall script to your package's package.json.

{
  "scripts": {
    "postinstall": "npx only-allow-esm"
  }
}

If the user's package.json does not have "type": "module" in it, it will report an error and exit.

License

WTFPL

Readme

Keywords

none

Package Sidebar

Install

npm i only-allow-esm

Weekly Downloads

2

Version

0.0.1

License

WTFPL

Unpacked Size

1.91 kB

Total Files

4

Last publish

Collaborators

  • kwaa