Skip to content

Commit

Permalink
chore: add the type property to the package.json. (#15)
Browse files Browse the repository at this point in the history
Package authors should include the type field, even in packages where all sources are CommonJS. Being explicit about the type of the package will future-proof the package in case the default type of Node.js ever changes, and it will also make things easier for build tools and loaders to determine how the files in the package should be interpreted.
  • Loading branch information
lholmquist committed Feb 2, 2023
1 parent ceb141d commit 6a52cc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "A summary of what to add when creating a new node module",
"main": "index.js",
"type": "commonjs",
"scripts": {
"prepare": "husky install",
"test": "nyc mocha"
Expand Down

0 comments on commit 6a52cc7

Please sign in to comment.