Skip to content

Commit db69d7d

Browse files
committed
Refactor package.json
1 parent 66d3b0a commit db69d7d

File tree

2 files changed

+57
-47
lines changed

2 files changed

+57
-47
lines changed

package.json

+56-46
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,9 @@
11
{
2-
"name": "mdast-util-mdx-expression",
3-
"version": "2.0.1",
4-
"description": "mdast extension to parse and serialize MDX (or MDX.js) expressions",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"mdast",
9-
"mdast-util",
10-
"util",
11-
"utility",
12-
"markdown",
13-
"markup",
14-
"mdx",
15-
"mdxjs",
16-
"expression",
17-
"extension"
18-
],
19-
"repository": "syntax-tree/mdast-util-mdx-expression",
20-
"bugs": "https://github.com/syntax-tree/mdast-util-mdx-expression/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/mdast-util-mdx-expression/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-
"complex-types.d.ts",
35-
"index.d.ts",
36-
"index.js"
37-
],
387
"dependencies": {
398
"@types/estree-jsx": "^1.0.0",
409
"@types/hast": "^3.0.0",
@@ -43,6 +12,7 @@
4312
"mdast-util-from-markdown": "^2.0.0",
4413
"mdast-util-to-markdown": "^2.0.0"
4514
},
15+
"description": "mdast extension to parse and serialize MDX (or MDX.js) expressions",
4616
"devDependencies": {
4717
"@types/acorn": "^4.0.0",
4818
"@types/node": "^22.0.0",
@@ -57,16 +27,31 @@
5727
"unist-util-remove-position": "^5.0.0",
5828
"xo": "^0.60.0"
5929
},
60-
"scripts": {
61-
"prepack": "npm run build && npm run format",
62-
"build": "tsc --build --clean && tsc --build && type-coverage",
63-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
64-
"test-api-prod": "node --conditions production test.js",
65-
"test-api-dev": "node --conditions development test.js",
66-
"test-api": "npm run test-api-dev && npm run test-api-prod",
67-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
68-
"test": "npm run build && npm run format && npm run test-coverage"
30+
"exports": "./index.js",
31+
"files": [
32+
"index.d.ts",
33+
"index.js",
34+
"lib/"
35+
],
36+
"funding": {
37+
"type": "opencollective",
38+
"url": "https://opencollective.com/unified"
6939
},
40+
"keywords": [
41+
"expression",
42+
"extension",
43+
"markdown",
44+
"markup",
45+
"mdast-util",
46+
"mdast",
47+
"mdxjs",
48+
"mdx",
49+
"unist",
50+
"utility",
51+
"util"
52+
],
53+
"license": "MIT",
54+
"name": "mdast-util-mdx-expression",
7055
"prettier": {
7156
"bracketSpacing": false,
7257
"semi": false,
@@ -80,21 +65,46 @@
8065
"remark-preset-wooorm"
8166
]
8267
},
68+
"repository": "syntax-tree/mdast-util-mdx-expression",
69+
"scripts": {
70+
"build": "tsc --build --clean && tsc --build && type-coverage",
71+
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
72+
"test-api-dev": "node --conditions development test.js",
73+
"test-api-prod": "node --conditions production test.js",
74+
"test-api": "npm run test-api-dev && npm run test-api-prod",
75+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
76+
"test": "npm run build && npm run format && npm run test-coverage"
77+
},
78+
"sideEffects": false,
8379
"typeCoverage": {
8480
"atLeast": 100,
85-
"detail": true,
86-
"ignoreCatch": true,
8781
"strict": true
8882
},
83+
"type": "module",
84+
"version": "2.0.1",
8985
"xo": {
9086
"overrides": [
9187
{
9288
"files": [
93-
"**/*.ts"
89+
"**/*.d.ts"
9490
],
9591
"rules": {
96-
"@typescript-eslint/ban-types": "off",
97-
"@typescript-eslint/consistent-type-definitions": "off"
92+
"@typescript-eslint/array-type": [
93+
"error",
94+
{
95+
"default": "generic"
96+
}
97+
],
98+
"@typescript-eslint/ban-types": [
99+
"error",
100+
{
101+
"extendDefaults": true
102+
}
103+
],
104+
"@typescript-eslint/consistent-type-definitions": [
105+
"error",
106+
"interface"
107+
]
98108
}
99109
}
100110
],

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"target": "es2022"
1313
},
1414
"exclude": ["coverage/", "node_modules/"],
15-
"include": ["**/*.js", "complex-types.d.ts", "index.d.ts"]
15+
"include": ["**/*.js", "index.d.ts"]
1616
}

0 commit comments

Comments
 (0)