Skip to content

Commit 40bf50b

Browse files
committed
Refactor package.json
1 parent 492f690 commit 40bf50b

File tree

1 file changed

+37
-40
lines changed

1 file changed

+37
-40
lines changed

package.json

Lines changed: 37 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,16 @@
11
{
2-
"name": "hast-util-from-selector",
3-
"version": "3.0.0",
4-
"description": "hast utility to parse CSS selectors to hast nodes",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"hast-util",
10-
"util",
11-
"utility",
12-
"html",
13-
"svg",
14-
"selector",
15-
"parse",
16-
"css",
17-
"hyperscript"
18-
],
19-
"repository": "syntax-tree/hast-util-from-selector",
20-
"bugs": "https://github.com/syntax-tree/hast-util-from-selector/issues",
21-
"funding": {
22-
"type": "opencollective",
23-
"url": "https://opencollective.com/unified"
24-
},
252
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-from-selector/issues",
264
"contributors": [
275
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
286
],
29-
"sideEffects": false,
30-
"type": "module",
31-
"exports": "./index.js",
32-
"files": [
33-
"lib/",
34-
"index.d.ts",
35-
"index.js"
36-
],
377
"dependencies": {
388
"@types/hast": "^3.0.0",
399
"css-selector-parser": "^2.0.0",
4010
"devlop": "^1.0.0",
4111
"hastscript": "^8.0.0"
4212
},
13+
"description": "hast utility to parse CSS selectors to hast nodes",
4314
"devDependencies": {
4415
"@types/node": "^22.0.0",
4516
"c8": "^10.0.0",
@@ -51,14 +22,31 @@
5122
"unist-builder": "^4.0.0",
5223
"xo": "^0.59.0"
5324
},
54-
"scripts": {
55-
"prepack": "npm run build && npm run format",
56-
"build": "tsc --build --clean && tsc --build && type-coverage",
57-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
58-
"test-api": "node --conditions development test.js",
59-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
60-
"test": "npm run build && npm run format && npm run test-coverage"
25+
"exports": "./index.js",
26+
"funding": {
27+
"type": "opencollective",
28+
"url": "https://opencollective.com/unified"
6129
},
30+
"files": [
31+
"index.d.ts",
32+
"index.js",
33+
"lib/"
34+
],
35+
"keywords": [
36+
"css",
37+
"hast-util",
38+
"hast",
39+
"html",
40+
"hyperscript",
41+
"svg",
42+
"parse",
43+
"utility",
44+
"util",
45+
"unist",
46+
"selector"
47+
],
48+
"license": "MIT",
49+
"name": "hast-util-from-selector",
6250
"prettier": {
6351
"bracketSpacing": false,
6452
"semi": false,
@@ -72,12 +60,21 @@
7260
"remark-preset-wooorm"
7361
]
7462
},
63+
"repository": "syntax-tree/hast-util-from-selector",
64+
"scripts": {
65+
"build": "tsc --build --clean && tsc --build && type-coverage",
66+
"format": "remark --frail --quiet --output -- . && prettier --log-level warn --write -- . && xo --fix",
67+
"test-api": "node --conditions development test.js",
68+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
69+
"test": "npm run build && npm run format && npm run test-coverage"
70+
},
71+
"sideEffects": false,
7572
"typeCoverage": {
7673
"atLeast": 100,
77-
"detail": true,
78-
"ignoreCatch": true,
7974
"strict": true
8075
},
76+
"type": "module",
77+
"version": "3.0.0",
8178
"xo": {
8279
"prettier": true,
8380
"rules": {

0 commit comments

Comments
 (0)