-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathpackage.json
More file actions
89 lines (89 loc) · 4.14 KB
/
package.json
File metadata and controls
89 lines (89 loc) · 4.14 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
{
"name": "@chenglou/pretext",
"version": "0.0.5",
"description": "Fast, accurate & comprehensive text measurement & layout",
"keywords": [
"text-layout",
"text-measurement",
"line-breaking",
"typography",
"canvas",
"svg",
"unicode"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/chenglou/pretext.git"
},
"type": "module",
"publishConfig": {
"access": "public"
},
"main": "./dist/layout.js",
"types": "./dist/layout.d.ts",
"exports": {
".": {
"types": "./dist/layout.d.ts",
"import": "./dist/layout.js",
"default": "./dist/layout.js"
},
"./rich-inline": {
"types": "./dist/rich-inline.d.ts",
"import": "./dist/rich-inline.js",
"default": "./dist/rich-inline.js"
},
"./demos/*": "./pages/demos/*",
"./assets/*": "./pages/assets/*",
"./package.json": "./package.json"
},
"files": [
"CHANGELOG.md",
"dist",
"src",
"!src/layout.test.ts",
"!src/test-data.ts",
"pages/demos",
"pages/assets"
],
"scripts": {
"accuracy-check": "bun run scripts/accuracy-check.ts",
"accuracy-check:firefox": "ACCURACY_CHECK_BROWSER=firefox bun run scripts/accuracy-check.ts",
"accuracy-check:safari": "ACCURACY_CHECK_BROWSER=safari bun run scripts/accuracy-check.ts",
"accuracy-snapshot": "bun run scripts/accuracy-check.ts --full --output=accuracy/chrome.json",
"accuracy-snapshot:firefox": "ACCURACY_CHECK_BROWSER=firefox bun run scripts/accuracy-check.ts --full --output=accuracy/firefox.json",
"accuracy-snapshot:safari": "ACCURACY_CHECK_BROWSER=safari bun run scripts/accuracy-check.ts --full --output=accuracy/safari.json",
"benchmark-check": "bun run scripts/benchmark-check.ts",
"benchmark-check:safari": "BENCHMARK_CHECK_BROWSER=safari bun run scripts/benchmark-check.ts",
"build:package": "rm -rf dist && tsc -p tsconfig.build.json",
"check": "tsc && oxlint --type-aware src",
"corpus-check": "bun run scripts/corpus-check.ts",
"corpus-check:safari": "CORPUS_CHECK_BROWSER=safari bun run scripts/corpus-check.ts",
"corpus-font-matrix": "bun run scripts/corpus-font-matrix.ts",
"corpus-font-matrix:safari": "CORPUS_CHECK_BROWSER=safari bun run scripts/corpus-font-matrix.ts",
"corpus-status": "bun run scripts/corpus-status.ts",
"corpus-status:refresh": "bun run scripts/corpus-sweep.ts --all --start=300 --end=900 --step=10 --output=corpora/chrome-step10.json && bun run scripts/corpus-sweep.ts --browser=safari --all --start=300 --end=900 --step=10 --output=corpora/safari-step10.json && bun run scripts/corpus-status.ts",
"corpus-sweep": "bun run scripts/corpus-sweep.ts",
"corpus-sweep:safari": "CORPUS_CHECK_BROWSER=safari bun run scripts/corpus-sweep.ts",
"corpus-taxonomy": "bun run scripts/corpus-taxonomy.ts",
"generate:bidi-data": "bun run scripts/generate-bidi-data.ts",
"keep-all-check": "bun run scripts/keep-all-check.ts",
"package-smoke-test": "bun run scripts/package-smoke-test.ts",
"prepack": "rm -rf dist && tsc -p tsconfig.build.json",
"pre-wrap-check": "bun run scripts/pre-wrap-check.ts",
"probe-check": "bun run scripts/probe-check.ts",
"probe-check:safari": "PROBE_CHECK_BROWSER=safari bun run scripts/probe-check.ts",
"status-dashboard": "bun run scripts/status-dashboard.ts",
"site:build": "rm -rf site && bun run scripts/build-demo-site.ts",
"start": "HOST=${HOST:-0.0.0.0}; PORT=3000; pids=$(lsof -tiTCP:$PORT -sTCP:LISTEN 2>/dev/null); if [ -n \"$pids\" ]; then echo \"Freeing port $PORT: terminating $pids\"; kill $pids 2>/dev/null || true; sleep 1; pids=$(lsof -tiTCP:$PORT -sTCP:LISTEN 2>/dev/null); if [ -n \"$pids\" ]; then echo \"Port $PORT still busy: killing $pids\"; kill -9 $pids 2>/dev/null || true; fi; fi; bun pages/*.html pages/demos/*.html pages/demos/*/index.html --host=$HOST:$PORT",
"start:windows": "bun pages/*.html pages/demos/*.html pages/demos/*/index.html --host=0.0.0.0:3000"
},
"devDependencies": {
"@types/bun": "latest",
"marked": "^17.0.5",
"oxlint": "^1.51.0",
"oxlint-tsgolint": "^0.15.0",
"tsgolint": "^0.0.1",
"typescript": "6.0.2"
}
}