Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
52 lines (52 loc) · 2 KB
/
Copy pathpackage.json
File metadata and controls
52 lines (52 loc) · 2 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
{
"name": "document-worker",
"private": true,
"description": "Document processing worker for PDFs, EPUBs, and HTML snapshots",
"exports": {
".": "./src/index.js"
},
"workspaces": [
"preview"
],
"scripts": {
"build": "webpack --mode production && bash scripts/build-assets && node scripts/build-metadata.js && node scripts/build-structured-document-text.js",
"dev:preview": "npm --workspace preview run dev --",
"typecheck": "tsc --noEmit",
"test": "npm run test:core && npm run test:runtime:browser",
"test:core": "npm run typecheck && npm run build && npm run test:pdf && npm run test:dom && npm run test:runtime:node && npm run test:runtime:jscontext",
"test:pdf": "node --import ./scripts/pdfjs-setup.js --import tsx --test test/pdf/*.test.js",
"test:dom": "node --import tsx --test test/dom/*.test.js",
"test:runtime:jscontext": "bash test/runtime/jscontext/run-tests.sh",
"test:runtime:node": "node scripts/build-metadata.js && node scripts/build-structured-document-text.js && node --import ./scripts/pdfjs-setup.js --import tsx --test test/runtime/node/*.test.js",
"test:runtime:browser": "playwright test test/runtime/browser/*.test.mjs --browser=chromium --workers=1",
"fixtures:update": "UPDATE_FIXTURES=1 node --import ./scripts/pdfjs-setup.js --test test/pdf/structure.test.js && UPDATE_FIXTURES=1 npm run test:dom"
},
"type": "module",
"author": "Martynas Bagdonas",
"license": "AGPL-3.0",
"dependencies": {
"fastest-levenshtein": "^1.0.16",
"fflate": "^0.8.2",
"htmlparser2": "^9.1.0",
"pako": "2.1.0"
},
"optionalDependencies": {
"canvas": "^3.2.1"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.4",
"@eslint/js": "^10.0.1",
"@napi-rs/canvas": "^0.1.100",
"@playwright/test": "^1.59.1",
"@zotero/eslint-config": "^1.0.9",
"esbuild": "^0.27.4",
"eslint": "^10.0.2",
"json-stringify-pretty-compact": "^4.0.0",
"onnxruntime-web": "1.27.0",
"ts-loader": "^9.5.4",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"webpack": "^5.105.3",
"webpack-cli": "^6.0.1"
}
}