Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit db7dba3

Browse files
committed
Refactor package.json
1 parent 59aaf11 commit db7dba3

File tree

2 files changed

+63
-49
lines changed

2 files changed

+63
-49
lines changed

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
!/dev/index.d.ts
21
*.d.ts
32
*.log
43
*.map
@@ -9,3 +8,4 @@
98
coverage/
109
node_modules/
1110
yarn.lock
11+
!/dev/index.d.ts

‎package.json‎

Lines changed: 62 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,9 @@
11
{
2-
"name": "mdast-util-from-markdown",
3-
"version": "2.0.1",
4-
"description": "mdast utility to parse markdown",
5-
"license": "MIT",
6-
"keywords": [
7-
"unist",
8-
"mdast",
9-
"mdast-util",
10-
"util",
11-
"utility",
12-
"markdown",
13-
"markup",
14-
"parse",
15-
"syntax",
16-
"tree",
17-
"ast"
18-
],
19-
"repository": "syntax-tree/mdast-util-from-markdown",
20-
"bugs": "https://github.com/syntax-tree/mdast-util-from-markdown/issues",
21-
"funding": {
22-
"type": "opencollective",
23-
"url": "https://opencollective.com/unified"
24-
},
252
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
3+
"bugs": "https://github.com/syntax-tree/mdast-util-from-markdown/issues",
264
"contributors": [
275
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
286
],
29-
"sideEffects": false,
30-
"type": "module",
31-
"exports": {
32-
"development": "./dev/index.js",
33-
"default": "./index.js"
34-
},
35-
"files": [
36-
"dev/",
37-
"lib/",
38-
"index.d.ts",
39-
"index.js"
40-
],
417
"dependencies": {
428
"@types/mdast": "^4.0.0",
439
"@types/unist": "^3.0.0",
@@ -52,6 +18,7 @@
5218
"micromark-util-types": "^2.0.0",
5319
"unist-util-stringify-position": "^4.0.0"
5420
},
21+
"description": "mdast utility to parse markdown",
5522
"devDependencies": {
5623
"@types/node": "^22.0.0",
5724
"c8": "^10.0.0",
@@ -70,16 +37,35 @@
7037
"typescript": "^5.0.0",
7138
"xo": "^0.59.0"
7239
},
73-
"scripts": {
74-
"prepack": "npm run build && npm run format",
75-
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
76-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
77-
"test-api-dev": "node --conditions development test/index.js",
78-
"test-api-prod": "node --conditions production test/index.js",
79-
"test-api": "npm run test-api-dev && npm run test-api-prod",
80-
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
81-
"test": "npm run build && npm run format && npm run test-coverage"
40+
"exports": {
41+
"development": "./dev/index.js",
42+
"default": "./index.js"
43+
},
44+
"files": [
45+
"dev/",
46+
"lib/",
47+
"index.d.ts",
48+
"index.js"
49+
],
50+
"funding": {
51+
"type": "opencollective",
52+
"url": "https://opencollective.com/unified"
8253
},
54+
"keywords": [
55+
"ast",
56+
"markdown",
57+
"markup",
58+
"mdast-util",
59+
"mdast",
60+
"parse",
61+
"syntax",
62+
"tree",
63+
"unist",
64+
"utility",
65+
"util"
66+
],
67+
"license": "MIT",
68+
"name": "mdast-util-from-markdown",
8369
"prettier": {
8470
"bracketSpacing": false,
8571
"semi": false,
@@ -93,18 +79,46 @@
9379
"remark-preset-wooorm"
9480
]
9581
},
82+
"repository": "syntax-tree/mdast-util-from-markdown",
83+
"scripts": {
84+
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
85+
"format": "remark --frail --quiet --output -- . && prettier --log-level warn --write -- . && xo --fix",
86+
"test-api-dev": "node --conditions development test/index.js",
87+
"test-api-prod": "node --conditions production test/index.js",
88+
"test-api": "npm run test-api-dev && npm run test-api-prod",
89+
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
90+
"test": "npm run build && npm run format && npm run test-coverage"
91+
},
92+
"sideEffects": false,
9693
"typeCoverage": {
9794
"atLeast": 100,
98-
"detail": true,
99-
"ignoreCatch": true,
10095
"strict": true
10196
},
97+
"type": "module",
98+
"version": "2.0.1",
10299
"xo": {
103100
"overrides": [
104101
{
105-
"files": "**/*.ts",
102+
"files": [
103+
"**/*.d.ts"
104+
],
106105
"rules": {
107-
"@typescript-eslint/consistent-type-definitions": "off"
106+
"@typescript-eslint/array-type": [
107+
"error",
108+
{
109+
"default": "generic"
110+
}
111+
],
112+
"@typescript-eslint/ban-types": [
113+
"error",
114+
{
115+
"extendDefaults": true
116+
}
117+
],
118+
"@typescript-eslint/consistent-type-definitions": [
119+
"error",
120+
"interface"
121+
]
108122
}
109123
},
110124
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /