Skip to content

Commit 3ae3725

Browse files
committed
Refactor package.json
1 parent aa62c68 commit 3ae3725

File tree

1 file changed

+38
-41
lines changed

1 file changed

+38
-41
lines changed

package.json

Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,10 @@
11
{
2-
"name": "hast-util-to-mdast",
3-
"version": "10.1.0",
4-
"description": "hast utility to transform to mdast",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"hast-util",
10-
"mdast",
11-
"mdast-util",
12-
"rehype",
13-
"remark",
14-
"markdown",
15-
"html",
16-
"transform"
17-
],
18-
"repository": "syntax-tree/hast-util-to-mdast",
19-
"bugs": "https://github.com/syntax-tree/hast-util-to-mdast/issues",
20-
"funding": {
21-
"type": "opencollective",
22-
"url": "https://opencollective.com/unified"
23-
},
242
"author": "Seth Vincent <[email protected]> (https://sethvincent.com)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-to-mdast/issues",
254
"contributors": [
265
"Seth Vincent <[email protected]> (https://sethvincent.com)",
276
"Titus Wormer <[email protected]> (https://wooorm.com)"
287
],
29-
"sideEffects": false,
30-
"type": "module",
31-
"exports": "./index.js",
32-
"files": [
33-
"lib/",
34-
"index.d.ts",
35-
"index.js"
36-
],
378
"dependencies": {
389
"@types/hast": "^3.0.0",
3910
"@types/mdast": "^4.0.0",
@@ -50,6 +21,7 @@
5021
"unist-util-position": "^5.0.0",
5122
"unist-util-visit": "^5.0.0"
5223
},
24+
"description": "hast utility to transform to mdast",
5325
"devDependencies": {
5426
"@types/node": "^22.0.0",
5527
"@types/ungap__structured-clone": "^1.0.0",
@@ -71,14 +43,30 @@
7143
"unist-util-remove-position": "^5.0.0",
7244
"xo": "^0.59.0"
7345
},
74-
"scripts": {
75-
"prepack": "npm run build && npm run format",
76-
"build": "tsc --build --clean && tsc --build && type-coverage",
77-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
78-
"test-api": "node --conditions development test/index.js",
79-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
80-
"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"
8155
},
56+
"keywords": [
57+
"hast-util",
58+
"hast",
59+
"html",
60+
"markdown",
61+
"mdast-util",
62+
"mdast",
63+
"rehype",
64+
"remark",
65+
"transform",
66+
"unist"
67+
],
68+
"license": "MIT",
69+
"name": "hast-util-to-mdast",
8270
"prettier": {
8371
"bracketSpacing": false,
8472
"semi": false,
@@ -96,22 +84,31 @@
9684
]
9785
]
9886
},
87+
"repository": "syntax-tree/hast-util-to-mdast",
88+
"scripts": {
89+
"build": "tsc --build --clean && tsc --build && type-coverage",
90+
"format": "remark --frail --quiet --output -- . && prettier --log-level warn --write -- . && xo --fix",
91+
"test-api": "node --conditions development test/index.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-
"#": "needed `any`s",
98+
"ignoreFiles#": "needed `any`s",
10399
"ignoreFiles": [
104100
"lib/state.d.ts"
105101
],
106-
"ignoreCatch": true,
107102
"strict": true
108103
},
104+
"type": "module",
105+
"version": "10.1.0",
109106
"xo": {
110107
"overrides": [
111108
{
112109
"files": "test/**/*.js",
113110
"rules": {
114-
"no-await-in-loop": 0
111+
"no-await-in-loop": "off"
115112
}
116113
}
117114
],

0 commit comments

Comments
 (0)