Skip to content

Commit

Permalink
chore: add the type property to the package.json.
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 1, 2023
1 parent f7863ff commit 7370923
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 @@ -4,6 +4,7 @@
"author": "",
"license": "Apache-2.0",
"typings": "index.d.ts",
"type": "commonjs",
"scripts": {
"lint": "eslint --ignore-path .gitignore .",
"lint:fix": "npm run lint -- --fix",
Expand Down

0 comments on commit 7370923

Please sign in to comment.