Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
131 lines (131 loc) · 5.22 KB
/
Copy pathpackage.json
File metadata and controls
131 lines (131 loc) · 5.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "@lint-md/parser",
"version": "0.5.1",
"description": "lint-md 的解析器,基于 remark 生态,将 Markdown 字符串转换成 AST",
"author": "yuzhanglong <loveyzl1123@gmail.com>",
"contributors": [
"hustcc <i@hust.cc>",
"yuzhanglong <loveyzl1123@gmail.com>"
],
"homepage": "https://github.com/lint-md/parser#readme",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/lint-md/parser.git"
},
"bugs": {
"url": "https://github.com/lint-md/parser/issues"
},
"keywords": [
"markdown",
"parser",
"remark",
"mdast",
"mdx",
"lint-md"
],
"publishConfig": {
"access": "public"
},
"type": "commonjs",
"sideEffects": false,
"packageManager": "pnpm@11.27.1",
"engines": {
"node": ">=22"
},
"main": "./dist/lint-md-parser.cjs",
"module": "./dist/lint-md-parser.mjs",
"typings": "./dist/lint-md-parser.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/lint-md-parser.d.mts",
"default": "./dist/lint-md-parser.mjs"
},
"require": {
"types": "./dist/lint-md-parser.d.cts",
"default": "./dist/lint-md-parser.cjs"
}
},
"./mdx": {
"import": {
"types": "./dist/lint-md-parser-mdx.d.mts",
"default": "./dist/lint-md-parser-mdx.mjs"
},
"require": {
"types": "./dist/lint-md-parser-mdx.d.cts",
"default": "./dist/lint-md-parser-mdx.cjs"
}
}
},
"files": [
"LICENSE",
"dist/lint-md-parser.cjs",
"dist/lint-md-parser.mjs",
"dist/lint-md-parser.d.ts",
"dist/lint-md-parser.d.cts",
"dist/lint-md-parser.d.mts",
"dist/lint-md-parser-mdx.cjs",
"dist/lint-md-parser-mdx.mjs",
"dist/lint-md-parser-mdx.d.ts",
"dist/lint-md-parser-mdx.d.cts",
"dist/lint-md-parser-mdx.d.mts",
"dist/tsdoc-metadata.json"
],
"scripts": {
"watch": "tsc -w",
"build": "rm -rf dist && pnpm run build:dist && pnpm run build:ts-declaration",
"build:dist": "esbuild src/index.ts --bundle --platform=node --format=cjs --outfile=dist/lint-md-parser.cjs --minify && esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/lint-md-parser.mjs --minify && esbuild src/mdx.ts --bundle --platform=node --format=cjs --outfile=dist/lint-md-parser-mdx.cjs --minify && esbuild src/mdx.ts --bundle --platform=node --format=esm --outfile=dist/lint-md-parser-mdx.mjs --minify",
"build:ts-declaration": "tsc && api-extractor run --local --verbose && api-extractor run --local --verbose --config api-extractor.mdx.json && cp dist/lint-md-parser.d.ts dist/lint-md-parser.d.cts && cp dist/lint-md-parser.d.ts dist/lint-md-parser.d.mts && cp dist/lint-md-parser-mdx.d.ts dist/lint-md-parser-mdx.d.cts && cp dist/lint-md-parser-mdx.d.ts dist/lint-md-parser-mdx.d.mts && for f in dist/lint-md-parser.d.ts dist/lint-md-parser.d.cts dist/lint-md-parser.d.mts dist/lint-md-parser-mdx.d.ts dist/lint-md-parser-mdx.d.cts dist/lint-md-parser-mdx.d.mts; do cat scripts/mdast-augment.d.ts >> \"$f\"; done",
"lint": "eslint --ext js,jsx,ts,tsx ./src",
"test": "pnpm run build && pnpm run test:built",
"test:built": "jest && pnpm run test:source && pnpm run test:types && pnpm run test:package && pnpm run test:mdx3 && pnpm run test:bench-entry",
"test:source": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config jest.source.config.js",
"test:coverage": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config jest.source.config.js --coverage",
"test:bench-entry": "node scripts/test-bench-markdown-versions.mjs",
"test:mdx3": "node scripts/test-mdx3.mjs",
"test:types": "tsc -p __tests__/types/tsconfig.json",
"test:package": "publint && node scripts/test-package.mjs",
"prebench:source-map": "pnpm run build",
"bench:source-map": "node scripts/bench-source-map.mjs",
"bench:parse": "node scripts/bench-parse.mjs",
"preprofile:source-map": "pnpm run build",
"profile:source-map": "node --expose-gc scripts/profile-source-map-heap.mjs",
"test:update": "pnpm run build && jest --updateSnapshot",
"prepublishOnly": "pnpm run lint && pnpm run build && pnpm run test:built"
},
"devDependencies": {
"@attachments/eslint-config": "^0.3.3",
"@mdx-js/mdx": "3.1.1",
"@microsoft/api-extractor": "^7.23.2",
"@types/jest": "^29.5.0",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"commonmark-spec": "0.31.2",
"decode-named-character-reference": "1.3.0",
"esbuild": "^0.28.1",
"eslint": "^8.57.0",
"fast-check": "4.10.2",
"hast-util-from-html": "2.1.0",
"hast-util-to-html": "9.0.6",
"jest": "^29.7.0",
"mdast-util-from-markdown": "1.3.1",
"mdast-util-gfm-autolink-literal": "^1.0.2",
"mdast-util-to-hast": "13.2.2",
"micromark-util-decode-numeric-character-reference": "1.1.0",
"publint": "^0.3.21",
"remark": "^14.0.2",
"remark-directive": "^2.0.1",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-math": "^5.1.1",
"remark-mdx": "2.3.0",
"ts-jest": "^29.4.0",
"typescript": "^6.0.3"
},
"dependencies": {
"@types/mdast": "^3.0.15",
"mdast-util-mdx": "2.0.1"
}
}