Skip to content

Commit 0c6dd61

Browse files
authored
chore: add the type property to the package.json. (#339)
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.
1 parent a7baf09 commit 0c6dd61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "7.1.1",
44
"description": "Node.js client for developing with OpenShift",
55
"main": "index.js",
6+
"type": "commonjs",
67
"scripts": {
78
"prepare": "husky install",
89
"pretest": "eslint --ignore-path .gitignore .",

0 commit comments

Comments
 (0)