Skip to content

Commit 7cc314d

Browse files
committed
chore: update type to module
1 parent 8395d90 commit 7cc314d

File tree

6 files changed

+335
-36
lines changed

6 files changed

+335
-36
lines changed

.prettierrc.js renamed to .prettierrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
trailingComma: 'es5',
33
singleQuote: true,
44
useTabs: true,

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
extends: ['@commitlint/config-conventional'],
33
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"files": [
1919
"dist"
2020
],
21-
"type": "commonjs",
21+
"type": "module",
2222
"main": "./dist/index.cjs",
2323
"module": "./dist/index.mjs",
2424
"types": "./dist/index.d.cts",
@@ -34,7 +34,7 @@
3434
"bundle-check": "pnpm run build && publint",
3535
"generate-all": "pnpm run --parallel \"/^generate:.*/\"",
3636
"generate-all:check": "pnpm run generate-all && git diff --exit-code",
37-
"generate:configs": "ts-node tools/generate-configs",
37+
"generate:configs": "tsx tools/generate-configs",
3838
"generate:rules-doc": "pnpm run build && pnpm run rule-doc-generator",
3939
"format": "pnpm run prettier-base --write",
4040
"format:check": "pnpm run prettier-base --check",
@@ -81,8 +81,8 @@
8181
"publint": "^0.3.16",
8282
"semantic-release": "^25.0.2",
8383
"semver": "^7.6.3",
84-
"ts-node": "^10.9.2",
8584
"tsdown": "^0.17.3",
85+
"tsx": "^4.21.0",
8686
"typescript": "^5.7.2",
8787
"typescript-eslint": "^8.15.0",
8888
"vitest": "^3.2.4"

0 commit comments

Comments
 (0)