Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
60 lines (60 loc) · 2.96 KB
/
Copy pathpackage.json
File metadata and controls
60 lines (60 loc) · 2.96 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
{
"name": "@osionos/markdown-engine",
"private": true,
"version": "0.1.0",
"description": "Framework-agnostic Markdown engine: AST parser (block + inline), incremental reparse, and HTML/React/terminal renderers. Declares its own block contract so it never imports a host app. Consumed as TS source through a vite/tsconfig alias, not from node_modules.",
"//type": "Deliberately NO \"type\": \"module\" \u2014 tests/markengine.test.js is plain CommonJS .js, and declaring ESM here would silently break `npm run test:unit`.",
"exports": {
".": "./index.ts",
"./blocks": "./blocks.ts",
"./inline": "./inline.ts",
"./dom": "./dom.ts",
"./react": "./react.tsx",
"./tables": "./tableConfig.ts",
"./terminal": "./terminal.ts"
},
"peerDependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"scripts": {
"build:engine": "tsc -p tsconfig.json --outDir dist --module commonjs --moduleResolution node10 --ignoreDeprecations 5.0 --declaration false --target ES2022",
"build": "npm run build:engine && vite build",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test:unit": "node --test tests/*.test.js tests/*.test.cjs",
"test": "npm run build:engine && npm run test:unit",
"check": "npm run typecheck && npm run quality && npm test && npm run coverage:parsers",
"quality": "npm run quality:escape-hatches && npm run quality:unused-exports && npm run quality:circular-deps",
"quality:escape-hatches": "node scripts/check-quality-gates.cjs",
"quality:unused-exports": "node scripts/check-unused-exports.cjs",
"quality:circular-deps": "madge --extensions ts,tsx --circular .",
"coverage:parsers": "npm run build:engine && c8 --reporter=text --reporter=json-summary --include='dist/src/block-parser.js' --include='dist/src/inline-parser.js' npm run test:unit && node scripts/check-parser-coverage.cjs",
"bench": "node bench/run.cjs",
"bench:incremental-scaling": "npm run build:engine && node bench/incremental-scaling.cjs",
"bench:worker-blocking": "npm run build:engine && node bench/worker-blocking.cjs",
"bench:compare-reference": "node bench/run.cjs --compare-reference",
"bench:pin-reference": "node bench/run.cjs --pin-reference",
"bench:ci": "node --test bench/*.test.cjs",
"dev:engine": "tsc -p tsconfig.json --outDir dist --module commonjs --moduleResolution node10 --ignoreDeprecations 5.0 --declaration false --target ES2022 --watch --preserveWatchOutput",
"start": "vite preview --host --port 3000 --strictPort",
"dev": "concurrently -k -n ENGINE,VITE -c cyan,green \"npm:dev:engine\" \"vite --host --port 3000 --strictPort\""
},
"devDependencies": {
"c8": "^10.1.3",
"concurrently": "^9.2.1",
"esbuild": "^0.25.12",
"madge": "^8.0.0",
"tinybench": "^6.0.1",
"ts-prune": "^0.10.3",
"typescript": "^5.9.3",
"vite": "^7.1.8"
}
}