Skip to content

Commit 6275528

Browse files
committed
Refactor package.json
1 parent 6a63f71 commit 6275528

File tree

1 file changed

+36
-39
lines changed

1 file changed

+36
-39
lines changed

package.json

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,17 @@
11
{
2-
"name": "rehype-highlight",
3-
"version": "7.0.1",
4-
"description": "rehype plugin to highlight code blocks with lowlight (highlight.js)",
5-
"license": "MIT",
6-
"keywords": [
7-
"unified",
8-
"rehype",
9-
"rehype-plugin",
10-
"plugin",
11-
"html",
12-
"hast",
13-
"syntax",
14-
"highlight",
15-
"highlighting"
16-
],
17-
"repository": "rehypejs/rehype-highlight",
18-
"bugs": "https://github.com/rehypejs/rehype-highlight/issues",
19-
"funding": {
20-
"type": "opencollective",
21-
"url": "https://opencollective.com/unified"
22-
},
232
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/rehypejs/rehype-highlight/issues",
244
"contributors": [
255
"Titus Wormer <[email protected]> (https://wooorm.com)"
266
],
27-
"sideEffects": false,
28-
"type": "module",
29-
"exports": "./index.js",
30-
"files": [
31-
"lib/",
32-
"index.d.ts.map",
33-
"index.d.ts",
34-
"index.js"
35-
],
367
"dependencies": {
378
"@types/hast": "^3.0.0",
389
"hast-util-to-text": "^4.0.0",
3910
"lowlight": "^3.0.0",
4011
"unist-util-visit": "^5.0.0",
4112
"vfile": "^6.0.0"
4213
},
14+
"description": "rehype plugin to highlight code blocks with lowlight (highlight.js)",
4315
"devDependencies": {
4416
"@types/node": "^22.0.0",
4517
"c8": "^10.0.0",
@@ -51,14 +23,30 @@
5123
"typescript": "^5.0.0",
5224
"xo": "^0.60.0"
5325
},
54-
"scripts": {
55-
"build": "tsc --build --clean && tsc --build && type-coverage",
56-
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
57-
"prepack": "npm run build && npm run format",
58-
"test": "npm run build && npm run format && npm run test-coverage",
59-
"test-api": "node --conditions development test.js",
60-
"test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api"
26+
"exports": "./index.js",
27+
"files": [
28+
"index.d.ts.map",
29+
"index.d.ts",
30+
"index.js",
31+
"lib/"
32+
],
33+
"funding": {
34+
"type": "opencollective",
35+
"url": "https://opencollective.com/unified"
6136
},
37+
"keywords": [
38+
"hast",
39+
"highlighting",
40+
"highlight",
41+
"html",
42+
"plugin",
43+
"rehype-plugin",
44+
"rehype",
45+
"syntax",
46+
"unified"
47+
],
48+
"license": "MIT",
49+
"name": "rehype-highlight",
6250
"prettier": {
6351
"bracketSpacing": false,
6452
"singleQuote": true,
@@ -72,12 +60,21 @@
7260
"remark-preset-wooorm"
7361
]
7462
},
63+
"repository": "rehypejs/rehype-highlight",
64+
"scripts": {
65+
"build": "tsc --build --clean && tsc --build && type-coverage",
66+
"format": "remark --frail --output --quiet -- . && 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": "7.0.1",
8178
"xo": {
8279
"prettier": true,
8380
"rules": {

0 commit comments

Comments
 (0)