Skip to content

Commit

Permalink
Add exports clauses to package.json files
Browse files Browse the repository at this point in the history
So that recent node versions can load the package as a module
  • Loading branch information
marijnh committed Aug 12, 2020
1 parent d6519aa commit f7462e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions acorn-loose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"homepage": "https://github.com/acornjs/acorn",
"main": "dist/acorn-loose.js",
"module": "dist/acorn-loose.mjs",
"exports": {
"import": "./dist/acorn-loose.mjs",
"require": "./dist/acorn-loose.js"
},
"version": "7.1.0",
"engines": {"node": ">=0.4.0"},
"dependencies": {
Expand Down
4 changes: 4 additions & 0 deletions acorn-walk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"main": "dist/walk.js",
"types": "dist/walk.d.ts",
"module": "dist/walk.mjs",
"exports": {
"import": "./dist/acorn-walk.mjs",
"require": "./dist/acorn-walk.js"
},
"version": "7.2.0",
"engines": {"node": ">=0.4.0"},
"maintainers": [
Expand Down
4 changes: 4 additions & 0 deletions acorn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"main": "dist/acorn.js",
"types": "dist/acorn.d.ts",
"module": "dist/acorn.mjs",
"exports": {
"import": "./dist/acorn.mjs",
"require": "./dist/acorn.js"
},
"version": "7.4.0",
"engines": {"node": ">=0.4.0"},
"maintainers": [
Expand Down

0 comments on commit f7462e1

Please sign in to comment.