Skip to content

Commit

Permalink
chore: make the package published as ESM only
Browse files Browse the repository at this point in the history
BREAKING CHANGES:
* the package is now a pure ESM and support for CommonJS is removed
* node 18.18 LTS or later is required to use this package
  • Loading branch information
alvis committed Jul 25, 2024
1 parent 5411a7e commit 8b2035e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .presetterrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"preset": ["presetter-preset-hybrid", "presetter-preset-strict"]
"preset": ["presetter-preset-esm", "presetter-preset-strict"]
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "5.0.0",
"packageManager": "[email protected]",
"engines": {
"node": ">=12.0"
"node": ">=18.18"
},
"description": "Handle exception smart.",
"keywords": [
Expand Down Expand Up @@ -32,13 +32,13 @@
"name": "Alvis HT Tang",
"email": "[email protected]"
},
"type": "module",
"main": "lib/index.js",
"module": "lib/index.mjs",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"require": "./lib/index.js",
"import": "./lib/index.mjs",
"import": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"./package.json": "./package.json"
Expand All @@ -58,9 +58,9 @@
"url": "git+https://github.com/alvis/xception.git"
},
"devDependencies": {
"presetter-preset-hybrid": "^4.4.0",
"presetter-preset-strict": "^4.4.0",
"presetter": "^4.4.0"
"presetter-preset-esm": "^4.7.0",
"presetter-preset-strict": "^4.7.0",
"presetter": "^4.7.0"
},
"dependencies": {
"chalk": "^4.0.0",
Expand Down
22 changes: 5 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b2035e

Please sign in to comment.