Skip to content

Commit

Permalink
feat(upgrade): add exports
Browse files Browse the repository at this point in the history
  • Loading branch information
gfortaine committed Jan 2, 2023
1 parent daa0cd9 commit 3680f61
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

## 3.0.0
- Add exports in package.json
- This package is now pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).

## 2.0.1
Expand Down
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,31 @@
},
"author": "Microsoft",
"license": "MIT",
"main": "lib/cjs/index.js",
"main": "lib/cjs/index.cjs",
"module": "lib/esm/index.js",
"types": "lib/cjs/index.d.ts",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./lib/esm/index.d.ts",
"require": "./lib/cjs/index.cjs",
"default": "./lib/esm/index.js"
},
"./package.json": "./package.json",
"./parse": {
"types": "./lib/esm/parse.d.ts",
"require": "./lib/cjs/parse.cjs",
"default": "./lib/esm/parse.js"
}
},
"typesVersions": {
"*": {
"parse": [
"lib/esm/parse.d.ts"
]
}
},
"files": [
"CHANGELOG.md",
"lib",
Expand Down

0 comments on commit 3680f61

Please sign in to comment.