Skip to content

Commit 7a9e97e

Browse files
committed
Refactor package.json
1 parent f869f2f commit 7a9e97e

File tree

1 file changed

+36
-39
lines changed

1 file changed

+36
-39
lines changed

package.json

+36-39
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,9 @@
11
{
2-
"name": "hast-util-to-xast",
3-
"version": "3.0.0",
4-
"description": "hast utility to transform to xast",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"xast",
10-
"hast-util",
11-
"xast-util",
12-
"util",
13-
"utility",
14-
"xml",
15-
"html",
16-
"dsl"
17-
],
18-
"repository": "syntax-tree/hast-util-to-xast",
19-
"bugs": "https://github.com/syntax-tree/hast-util-to-xast/issues",
20-
"funding": {
21-
"type": "opencollective",
22-
"url": "https://opencollective.com/unified"
23-
},
242
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-to-xast/issues",
254
"contributors": [
265
"Titus Wormer <[email protected]> (https://wooorm.com)"
276
],
28-
"sideEffects": false,
29-
"type": "module",
30-
"exports": "./index.js",
31-
"files": [
32-
"lib/",
33-
"index.d.ts",
34-
"index.js"
35-
],
367
"dependencies": {
378
"@types/hast": "^3.0.0",
389
"@types/unist": "^3.0.0",
@@ -44,6 +15,7 @@
4415
"web-namespaces": "^2.0.0",
4516
"zwitch": "^2.0.0"
4617
},
18+
"description": "hast utility to transform to xast",
4719
"devDependencies": {
4820
"@types/node": "^22.0.0",
4921
"c8": "^10.0.0",
@@ -58,14 +30,30 @@
5830
"xastscript": "^4.0.0",
5931
"xo": "^0.60.0"
6032
},
61-
"scripts": {
62-
"prepack": "npm run build && npm run format",
63-
"build": "tsc --build --clean && tsc --build && type-coverage",
64-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
65-
"test-api": "node --conditions development test.js",
66-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
67-
"test": "npm run build && npm run format && npm run test-coverage"
33+
"exports": "./index.js",
34+
"files": [
35+
"index.d.ts",
36+
"index.js",
37+
"lib/"
38+
],
39+
"funding": {
40+
"type": "opencollective",
41+
"url": "https://opencollective.com/unified"
6842
},
43+
"keywords": [
44+
"dsl",
45+
"hast-util",
46+
"hast",
47+
"html",
48+
"unist",
49+
"utility",
50+
"util",
51+
"xast-util",
52+
"xast",
53+
"xml"
54+
],
55+
"license": "MIT",
56+
"name": "hast-util-to-xast",
6957
"prettier": {
7058
"bracketSpacing": false,
7159
"semi": false,
@@ -79,12 +67,21 @@
7967
"remark-preset-wooorm"
8068
]
8169
},
70+
"repository": "syntax-tree/hast-util-to-xast",
71+
"scripts": {
72+
"build": "tsc --build --clean && tsc --build && type-coverage",
73+
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
74+
"test-api": "node --conditions development test.js",
75+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
76+
"test": "npm run build && npm run format && npm run test-coverage"
77+
},
78+
"sideEffects": false,
8279
"typeCoverage": {
8380
"atLeast": 100,
84-
"detail": true,
85-
"ignoreCatch": true,
8681
"strict": true
8782
},
83+
"type": "module",
84+
"version": "3.0.0",
8885
"xo": {
8986
"prettier": true
9087
}

0 commit comments

Comments
 (0)