Skip to content

Commit

Permalink
Add extension to main script in package.json
Browse files Browse the repository at this point in the history
Otherwise, node complains “automatic extension resolution of the main field is deprecated for ES modules”
  • Loading branch information
dontcallmedom committed Jul 22, 2024
1 parent 60afbf9 commit 5f93cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"abnf_gen": "bin/abnf_gen.js",
"abnf_test": "bin/abnf_test.js"
},
"main": "lib/abnf",
"main": "lib/abnf.js",
"type": "module",
"scripts": {
"lint": "eslint .",
Expand Down

0 comments on commit 5f93cbd

Please sign in to comment.