Skip to content

Commit 96f03e4

Browse files
committed
Refactor package.json
1 parent 0572593 commit 96f03e4

File tree

1 file changed

+41
-44
lines changed

1 file changed

+41
-44
lines changed

package.json

Lines changed: 41 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,9 @@
11
{
2-
"name": "hast-util-to-estree",
3-
"version": "3.1.0",
4-
"description": "hast utility to transform to estree (JavaScript AST) JSX",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"hast-util",
10-
"util",
11-
"utility",
12-
"html",
13-
"change",
14-
"transform",
15-
"rehype",
16-
"estree",
17-
"jsx",
18-
"javascript",
19-
"ecmascript",
20-
"mdx"
21-
],
22-
"repository": "syntax-tree/hast-util-to-estree",
23-
"bugs": "https://github.com/syntax-tree/hast-util-to-estree/issues",
24-
"funding": {
25-
"type": "opencollective",
26-
"url": "https://opencollective.com/unified"
27-
},
282
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-to-estree/issues",
294
"contributors": [
305
"Titus Wormer <[email protected]> (https://wooorm.com)"
316
],
32-
"sideEffects": false,
33-
"type": "module",
34-
"exports": "./index.js",
35-
"files": [
36-
"lib/",
37-
"index.d.ts",
38-
"index.js"
39-
],
407
"dependencies": {
418
"@types/estree": "^1.0.0",
429
"@types/estree-jsx": "^1.0.0",
@@ -55,6 +22,7 @@
5522
"unist-util-position": "^5.0.0",
5623
"zwitch": "^2.0.0"
5724
},
25+
"description": "hast utility to transform to estree (JavaScript AST) JSX",
5826
"devDependencies": {
5927
"@types/node": "^22.0.0",
6028
"acorn-jsx": "^5.0.0",
@@ -75,14 +43,34 @@
7543
"unist-util-visit": "^5.0.0",
7644
"xo": "^0.60.0"
7745
},
78-
"scripts": {
79-
"prepack": "npm run build && npm run format",
80-
"build": "tsc --build --clean && tsc --build && type-coverage",
81-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
82-
"test-api": "node --conditions development test.js",
83-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
84-
"test": "npm run build && npm run format && npm run test-coverage"
46+
"exports": "./index.js",
47+
"files": [
48+
"index.d.ts",
49+
"index.js",
50+
"lib/"
51+
],
52+
"funding": {
53+
"type": "opencollective",
54+
"url": "https://opencollective.com/unified"
8555
},
56+
"keywords": [
57+
"change",
58+
"ecmascript",
59+
"estree",
60+
"hast-util",
61+
"hast",
62+
"html",
63+
"javascript",
64+
"jsx",
65+
"mdx",
66+
"rehype",
67+
"transform",
68+
"unist",
69+
"utility",
70+
"util"
71+
],
72+
"license": "MIT",
73+
"name": "hast-util-to-estree",
8674
"prettier": {
8775
"bracketSpacing": false,
8876
"semi": false,
@@ -96,17 +84,26 @@
9684
"remark-preset-wooorm"
9785
]
9886
},
87+
"repository": "syntax-tree/hast-util-to-estree",
88+
"scripts": {
89+
"build": "tsc --build --clean && tsc --build && type-coverage",
90+
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
91+
"test-api": "node --conditions development test.js",
92+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
93+
"test": "npm run build && npm run format && npm run test-coverage"
94+
},
95+
"sideEffects": false,
9996
"typeCoverage": {
10097
"atLeast": 100,
101-
"detail": true,
102-
"ignoreCatch": true,
103-
"#": "needed any",
98+
"ignoreFiles#": "needed `any`",
10499
"ignoreFiles": [
105100
"lib/state.d.ts",
106101
"lib/state.js"
107102
],
108103
"strict": true
109104
},
105+
"type": "module",
106+
"version": "3.1.0",
110107
"xo": {
111108
"prettier": true,
112109
"rules": {

0 commit comments

Comments
 (0)