-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 3.13 KB
/
Copy pathpackage.json
File metadata and controls
83 lines (83 loc) · 3.13 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
{
"name": "@lint-md/parser",
"version": "0.2.2",
"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",
"license": "MIT",
"type": "commonjs",
"sideEffects": false,
"packageManager": "pnpm@11.0.9",
"engines": {
"node": ">=20"
},
"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"
}
}
},
"files": [
"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/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",
"build:ts-declaration": "tsc && api-extractor run --local --verbose && 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 && for f in dist/lint-md-parser.d.ts dist/lint-md-parser.d.cts dist/lint-md-parser.d.mts; do cat scripts/mdast-augment.d.ts >> \"$f\"; done",
"lint": "eslint --ext js,jsx,ts,tsx ./src",
"test": "jest && pnpm run test:types && pnpm run test:package",
"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",
"preprofile:source-map": "pnpm run build",
"profile:source-map": "node --expose-gc scripts/profile-source-map-heap.mjs",
"test:update": "jest --updateSnapshot",
"prepublishOnly": "pnpm run lint && pnpm run build && pnpm run test"
},
"devDependencies": {
"@attachments/eslint-config": "^0.3.3",
"@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",
"decode-named-character-reference": "1.3.0",
"esbuild": "^0.28.1",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"mdast-util-from-markdown": "1.3.1",
"mdast-util-gfm-autolink-literal": "^1.0.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",
"ts-jest": "^29.4.0",
"typescript": "^6.0.3"
},
"dependencies": {
"@types/mdast": "^3.0.15"
}
}