Skip to content

Commit 929ea49

Browse files
committed
Refactor package.json
1 parent 5ddec7f commit 929ea49

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

package.json

+39-39
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,9 @@
11
{
2-
"name": "hast-util-to-jsx-runtime",
3-
"version": "2.3.0",
4-
"description": "hast utility to transform to preact, react, solid, svelte, vue, etc",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"hast",
9-
"hast-util",
10-
"util",
11-
"utility",
12-
"html",
13-
"preact",
14-
"react",
15-
"solid",
16-
"svelte",
17-
"vue"
18-
],
19-
"repository": "syntax-tree/hast-util-to-jsx-runtime",
20-
"bugs": "https://github.com/syntax-tree/hast-util-to-jsx-runtime/issues",
21-
"funding": {
22-
"type": "opencollective",
23-
"url": "https://opencollective.com/unified"
24-
},
252
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/hast-util-to-jsx-runtime/issues",
264
"contributors": [
275
"Titus Wormer <[email protected]> (https://wooorm.com)"
286
],
29-
"sideEffects": false,
30-
"type": "module",
31-
"exports": "./index.js",
32-
"files": [
33-
"lib/",
34-
"index.d.ts",
35-
"index.js"
36-
],
377
"dependencies": {
388
"@types/estree": "^1.0.0",
399
"@types/hast": "^3.0.0",
@@ -51,6 +21,7 @@
5121
"unist-util-position": "^5.0.0",
5222
"vfile-message": "^4.0.0"
5323
},
24+
"description": "hast utility to transform to preact, react, solid, svelte, vue, etc",
5425
"devDependencies": {
5526
"@types/node": "^22.0.0",
5627
"@types/react": "^18.0.0",
@@ -69,15 +40,31 @@
6940
"typescript": "^5.0.0",
7041
"xo": "^0.59.0"
7142
},
72-
"scripts": {
73-
"prepack": "npm run build && npm run format",
74-
"generate": "esbuild . --bundle --minify --target=es2020 --format=esm --outfile=example/hast-util-to-jsx-runtime.min.js",
75-
"build": "tsc --build --clean && tsc --build && type-coverage",
76-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
77-
"test-api": "node --conditions development test/index.js",
78-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
79-
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
43+
"exports": "./index.js",
44+
"files": [
45+
"lib/",
46+
"index.d.ts",
47+
"index.js"
48+
],
49+
"funding": {
50+
"type": "opencollective",
51+
"url": "https://opencollective.com/unified"
8052
},
53+
"keywords": [
54+
"hast-util",
55+
"hast",
56+
"html",
57+
"preact",
58+
"react",
59+
"solid",
60+
"svelte",
61+
"unist",
62+
"utility",
63+
"util",
64+
"vue"
65+
],
66+
"license": "MIT",
67+
"name": "hast-util-to-jsx-runtime",
8168
"prettier": {
8269
"bracketSpacing": false,
8370
"semi": false,
@@ -91,6 +78,17 @@
9178
"remark-preset-wooorm"
9279
]
9380
},
81+
"repository": "syntax-tree/hast-util-to-jsx-runtime",
82+
"scripts": {
83+
"build": "tsc --build --clean && tsc --build && type-coverage",
84+
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
85+
"generate": "esbuild --bundle --format=esm --minify --outfile=example/hast-util-to-jsx-runtime.min.js --target=es2020 .",
86+
"prepack": "npm run build && npm run format",
87+
"test-api": "node --conditions development test/index.js",
88+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
89+
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
90+
},
91+
"sideEffects": false,
9492
"typeCoverage": {
9593
"atLeast": 100,
9694
"detail": true,
@@ -100,6 +98,8 @@
10098
],
10199
"strict": true
102100
},
101+
"type": "module",
102+
"version": "2.3.0",
103103
"xo": {
104104
"overrides": [
105105
{

0 commit comments

Comments
 (0)