Skip to content

Commit

Permalink
chore: add the type property to the package.json. (#339)
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 a7baf09 commit 0c6dd61
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": "7.1.1",
"description": "Node.js client for developing with OpenShift",
"main": "index.js",
"type": "commonjs",
"scripts": {
"prepare": "husky install",
"pretest": "eslint --ignore-path .gitignore .",
Expand Down

0 comments on commit 0c6dd61

Please sign in to comment.