Skip to content

Commit ac97663

Browse files
committed
Refactor package.json
1 parent 05a3f8e commit ac97663

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": "mdast-util-find-and-replace",
3-
"version": "3.0.1",
4-
"description": "mdast utility to find and replace text in a tree",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"mdast",
9-
"mdast-util",
10-
"util",
11-
"utility",
12-
"markdown",
13-
"find",
14-
"replace"
15-
],
16-
"repository": "syntax-tree/mdast-util-find-and-replace",
17-
"bugs": "https://github.com/syntax-tree/mdast-util-find-and-replace/issues",
18-
"funding": {
19-
"type": "opencollective",
20-
"url": "https://opencollective.com/unified"
21-
},
222
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/mdast-util-find-and-replace/issues",
234
"contributors": [
245
"Titus Wormer <[email protected]> (https://wooorm.com)"
256
],
26-
"sideEffects": false,
27-
"type": "module",
28-
"exports": "./index.js",
29-
"files": [
30-
"lib/",
31-
"index.d.ts",
32-
"index.js"
33-
],
347
"dependencies": {
358
"@types/mdast": "^4.0.0",
369
"escape-string-regexp": "^5.0.0",
3710
"unist-util-is": "^6.0.0",
3811
"unist-util-visit-parents": "^6.0.0"
3912
},
13+
"description": "mdast utility to find and replace text in a tree",
4014
"devDependencies": {
4115
"@types/node": "^22.0.0",
4216
"c8": "^10.0.0",
@@ -48,14 +22,28 @@
4822
"unist-builder": "^4.0.0",
4923
"xo": "^0.60.0"
5024
},
51-
"scripts": {
52-
"prepack": "npm run build && npm run format",
53-
"build": "tsc --build --clean && tsc --build && type-coverage",
54-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
55-
"test-api": "node --conditions development test.js",
56-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
57-
"test": "npm run build && npm run format && npm run test-coverage"
25+
"exports": "./index.js",
26+
"files": [
27+
"index.d.ts",
28+
"index.js",
29+
"lib/"
30+
],
31+
"funding": {
32+
"type": "opencollective",
33+
"url": "https://opencollective.com/unified"
5834
},
35+
"keywords": [
36+
"find",
37+
"markdown",
38+
"mdast-util",
39+
"mdast",
40+
"unist",
41+
"utility",
42+
"util",
43+
"replace"
44+
],
45+
"license": "MIT",
46+
"name": "mdast-util-find-and-replace",
5947
"prettier": {
6048
"bracketSpacing": false,
6149
"semi": false,
@@ -69,15 +57,24 @@
6957
"remark-preset-wooorm"
7058
]
7159
},
60+
"repository": "syntax-tree/mdast-util-find-and-replace",
61+
"scripts": {
62+
"build": "tsc --build --clean && tsc --build && type-coverage",
63+
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
64+
"test-api": "node --conditions development test.js",
65+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
66+
"test": "npm run build && npm run format && npm run test-coverage"
67+
},
68+
"sideEffects": false,
7269
"typeCoverage": {
7370
"atLeast": 100,
74-
"detail": true,
75-
"ignoreCatch": true,
7671
"ignoreFiles": [
7772
"lib/index.d.ts"
7873
],
7974
"strict": true
8075
},
76+
"type": "module",
77+
"version": "3.0.1",
8178
"xo": {
8279
"prettier": true,
8380
"rules": {

0 commit comments

Comments
 (0)