Use this package.json
for initializing new npm packages. It will make the
package a pure ESM package. Feel free to fork this and replace the author and/or
license information.
Last active
February 8, 2022 03:40
-
-
Save travishorn/6d859e21deba26ef49fbd23fa35d5a68 to your computer and use it in GitHub Desktop.
npm init for pure ESM package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "myapp", | |
"version": "0.1.0", | |
"description": "", | |
"exports": "./index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "Travis Horn <travis@travishorn.com> (https://travishorn.com/)", | |
"license": "MIT", | |
"type": "module", | |
"engines": { | |
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment