Skip to content

Commit

Permalink
[meta] switch from files field to npmignore; add exports
Browse files Browse the repository at this point in the history
Adding `exports` is usually a breaking change, but since `files` was used, it is not.
  • Loading branch information
ljharb committed Apr 27, 2023
1 parent 825f88e commit 6e870be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -3,9 +3,10 @@
"version": "3.0.1",
"description": "Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.",
"main": "index.js",
"files": [
"index.js"
],
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
Expand Down

0 comments on commit 6e870be

Please sign in to comment.