Skip to content

Commit 85a1d48

Browse files
committed
Refactor package.json
1 parent 11e4fd9 commit 85a1d48

File tree

1 file changed

+38
-41
lines changed

1 file changed

+38
-41
lines changed

package.json

+38-41
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,16 @@
11
{
2-
"name": "hast-util-sanitize",
3-
"version": "5.0.1",
4-
"description": "hast utility to sanitize nodes",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"hast-util",
10-
"util",
11-
"utility",
12-
"html",
13-
"clean",
14-
"xss",
15-
"safe",
16-
"sanitize"
17-
],
18-
"repository": "syntax-tree/hast-util-sanitize",
19-
"bugs": "https://github.com/syntax-tree/hast-util-sanitize/issues",
20-
"funding": {
21-
"type": "opencollective",
22-
"url": "https://opencollective.com/unified"
23-
},
242
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-sanitize/issues",
254
"contributors": [
26-
"Titus Wormer <[email protected]> (https://wooorm.com)",
27-
"Jason Switzer <[email protected]>"
28-
],
29-
"sideEffects": false,
30-
"type": "module",
31-
"exports": "./index.js",
32-
"files": [
33-
"lib/",
34-
"index.d.ts",
35-
"index.js"
5+
"Jason Switzer <[email protected]>",
6+
"Titus Wormer <[email protected]> (https://wooorm.com)"
367
],
378
"dependencies": {
389
"@types/hast": "^3.0.0",
3910
"@ungap/structured-clone": "^1.0.0",
4011
"unist-util-position": "^5.0.0"
4112
},
13+
"description": "hast utility to sanitize nodes",
4214
"devDependencies": {
4315
"@types/node": "^22.0.0",
4416
"@types/ungap__structured-clone": "^1.0.0",
@@ -59,14 +31,30 @@
5931
"unist-util-visit": "^5.0.0",
6032
"xo": "^0.59.0"
6133
},
62-
"scripts": {
63-
"prepack": "npm run build && npm run format",
64-
"build": "tsc --build --clean && tsc --build && type-coverage",
65-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
66-
"test-api": "node --conditions development test/index.js",
67-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
68-
"test": "npm run build && npm run format && npm run test-coverage"
34+
"exports": "./index.js",
35+
"files": [
36+
"lib/",
37+
"index.d.ts",
38+
"index.js"
39+
],
40+
"funding": {
41+
"type": "opencollective",
42+
"url": "https://opencollective.com/unified"
6943
},
44+
"keywords": [
45+
"clean",
46+
"hast-util",
47+
"hast",
48+
"html",
49+
"safe",
50+
"sanitize",
51+
"utility",
52+
"util",
53+
"unist",
54+
"xss"
55+
],
56+
"license": "MIT",
57+
"name": "hast-util-sanitize",
7058
"prettier": {
7159
"bracketSpacing": false,
7260
"semi": false,
@@ -80,16 +68,25 @@
8068
"remark-preset-wooorm"
8169
]
8270
},
71+
"repository": "syntax-tree/hast-util-sanitize",
72+
"scripts": {
73+
"build": "tsc --build --clean && tsc --build && type-coverage",
74+
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
75+
"test-api": "node --conditions development test/index.js",
76+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
77+
"test": "npm run build && npm run format && npm run test-coverage"
78+
},
79+
"sideEffects": false,
8380
"typeCoverage": {
8481
"atLeast": 100,
85-
"detail": true,
86-
"ignoreCatch": true,
8782
"#": "Couple of needed `any`s",
8883
"ignoreFiles": [
8984
"lib/index.d.ts"
9085
],
9186
"strict": true
9287
},
88+
"type": "module",
89+
"version": "5.0.1",
9390
"xo": {
9491
"overrides": [
9592
{

0 commit comments

Comments
 (0)