Skip to content

Commit 1731863

Browse files
committed
Refactor package.json
1 parent accb688 commit 1731863

File tree

1 file changed

+34
-37
lines changed

1 file changed

+34
-37
lines changed

Diff for: package.json

+34-37
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,16 @@
11
{
2-
"name": "hast-util-to-dom",
3-
"version": "4.0.0",
4-
"description": "hast utility to transform to the DOM",
5-
"license": "ISC",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"hast-util",
10-
"util",
11-
"utility",
12-
"rehype",
13-
"dom",
14-
"html"
15-
],
16-
"repository": "syntax-tree/hast-util-to-dom",
17-
"bugs": "https://github.com/syntax-tree/hast-util-to-dom/issues",
18-
"funding": {
19-
"type": "opencollective",
20-
"url": "https://opencollective.com/unified"
21-
},
222
"author": "Keith McKnight <[email protected]> (https://keith.mcknig.ht)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-to-dom/issues",
234
"contributors": [
245
"Keith McKnight <[email protected]> (https://keith.mcknig.ht)",
256
"Titus Wormer <[email protected]> (https://wooorm.com)"
267
],
27-
"sideEffects": false,
28-
"type": "module",
29-
"exports": "./index.js",
30-
"files": [
31-
"lib/",
32-
"index.d.ts",
33-
"index.js"
34-
],
358
"dependencies": {
369
"@types/hast": "^3.0.0",
3710
"property-information": "^6.0.0",
3811
"web-namespaces": "^2.0.0"
3912
},
13+
"description": "hast utility to transform to the DOM",
4014
"devDependencies": {
4115
"@types/jsdom": "^21.0.0",
4216
"@types/node": "^22.0.0",
@@ -52,14 +26,28 @@
5226
"w3c-xmlserializer": "^5.0.0",
5327
"xo": "^0.60.0"
5428
},
55-
"scripts": {
56-
"prepack": "npm run build && npm run format",
57-
"build": "tsc --build --clean && tsc --build && type-coverage",
58-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
59-
"test-api": "node --conditions development test/index.js",
60-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
61-
"test": "npm run build && npm run format && npm run test-coverage"
29+
"exports": "./index.js",
30+
"files": [
31+
"index.d.ts",
32+
"index.js",
33+
"lib/"
34+
],
35+
"funding": {
36+
"type": "opencollective",
37+
"url": "https://opencollective.com/unified"
6238
},
39+
"keywords": [
40+
"dom",
41+
"hast-util",
42+
"hast",
43+
"html",
44+
"rehype",
45+
"unist",
46+
"utility",
47+
"util"
48+
],
49+
"license": "ISC",
50+
"name": "hast-util-to-dom",
6351
"prettier": {
6452
"bracketSpacing": false,
6553
"semi": false,
@@ -73,12 +61,21 @@
7361
"remark-preset-wooorm"
7462
]
7563
},
64+
"repository": "syntax-tree/hast-util-to-dom",
65+
"scripts": {
66+
"build": "tsc --build --clean && tsc --build && type-coverage",
67+
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
68+
"test-api": "node --conditions development test/index.js",
69+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
70+
"test": "npm run build && npm run format && npm run test-coverage"
71+
},
72+
"sideEffects": false,
7673
"typeCoverage": {
7774
"atLeast": 100,
78-
"detail": true,
79-
"ignoreCatch": true,
8075
"strict": true
8176
},
77+
"type": "module",
78+
"version": "4.0.0",
8279
"xo": {
8380
"overrides": [
8481
{

0 commit comments

Comments
 (0)