Skip to content

Commit

Permalink
* Node needs "exports" in package.json for ESM-only libraries.
Browse files Browse the repository at this point in the history
* Do not include the diff legend for context that does not include a diff.
  • Loading branch information
cowwoc committed Sep 4, 2024
1 parent 5a098b5 commit f4d28ce
Show file tree
Hide file tree
Showing 16 changed files with 217 additions and 164 deletions.
2 changes: 1 addition & 1 deletion docs/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Minor updates involving cosmetic changes have been omitted from this list. See
https://github.com/cowwoc/requirements.java/commits/master for a full list.

## Version 4.0 - ?
## Version 4.0.0 - ?

* Breaking changes:
* Replaced `validateThat()` with `checkIf()`.
Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
"browser": "browser/index.js",
"module": "node/index.mjs",
"types": "node/index.d.mts",
"exports": {
".": {
"import": "./node/index.mjs"
}
},
"sideEffects": false,
"dependencies": {
"chalk": "^5.3.0",
Expand All @@ -38,15 +43,15 @@
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/chai": "^4.3.18",
"@types/diff": "^5.2.1",
"@types/chai": "^4.3.19",
"@types/diff": "^5.2.2",
"@types/eslint": "^9.6.1",
"@types/lodash": "^4.17.7",
"@types/lodash.debounce": "^4.0.9",
"@types/lodash.isequal": "^4.5.8",
"@types/minimist": "^1.2.5",
"@types/mocha": "^10.0.7",
"@types/node": "^22.5.0",
"@types/node": "^22.5.1",
"@types/rollup-plugin-node-globals": "^1.4.4",
"@types/tmp": "^0.2.6",
"@typescript-eslint/eslint-plugin": "^8.3.0",
Expand All @@ -66,7 +71,7 @@
"pnpm": "^9.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rollup": "^4.21.1",
"rollup": "^4.21.2",
"rollup-plugin-node-globals": "^1.4.0",
"source-map-support": "^0.5.21",
"strip-ansi": "^7.1.0",
Expand Down
Loading

0 comments on commit f4d28ce

Please sign in to comment.