Skip to content

Commit

Permalink
fix: Textlint supposed to support ESM rules since v13, so generate ES…
Browse files Browse the repository at this point in the history
…M files again
  • Loading branch information
sapegin committed Jun 9, 2024
1 parent a85cbb2 commit bfb0e5b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 147 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ node_modules/
.vscode/
.eslintcache
yarn.lock
out/
143 changes: 0 additions & 143 deletions out/index.js

This file was deleted.

1 change: 0 additions & 1 deletion out/index.js.map

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"engines": {
"node": ">=20"
},
"main": "out/index.js",
"type": "module",
"exports": "./out/index.js",
"files": [
"out",
"words.json"
Expand Down Expand Up @@ -60,6 +61,9 @@
"match-casing": "^2.0.1",
"strip-json-comments": "^5.0.1"
},
"peerDependencies": {
"textlint": ">=13"
},
"lint-staged": {
"*.{js,md,json}": [
"prettier --write"
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"module": "NodeNext",
"target": "es2020",
"moduleResolution": "NodeNext",
"outDir": "out",
"lib": ["es2022", "dom"],
"sourceMap": true,
Expand Down

0 comments on commit bfb0e5b

Please sign in to comment.