Skip to content

Commit

Permalink
tools: add package.json to package.exports (#2319)
Browse files Browse the repository at this point in the history
* tools: add package.json to package.exports

When the export map was added the ability to import / require
the `package.json` was lost as it wasn't included in the map.

This adds back the functionality by explicitly adding it to the map.

Refs: FredKSchott/snowpack#193

* also allow fall-through (until next semver major)

Co-authored-by: Jason Miller <[email protected]>
  • Loading branch information
MylesBorins and developit authored Feb 8, 2020
1 parent d4dc39e commit 7d708e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
},
"./compat/server": {
"require": "./compat/server.js"
}
},
"./package.json": "./package.json",
"./": "./"
},
"license": "MIT",
"funding": {
Expand Down

0 comments on commit 7d708e8

Please sign in to comment.