only-allow-esm
v0.0.1
Published
Force ES Modules to be used on a project.
Downloads
1
Readme
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