0.0.1 • Published 3 years ago
only-allow-esm v0.0.1
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
0.0.1
3 years ago