-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
205 lines (205 loc) · 6.75 KB
/
Copy pathpackage.json
File metadata and controls
205 lines (205 loc) · 6.75 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"name": "markpdf",
"version": "0.1.0",
"private": false,
"type": "module",
"description": "A standalone PDF reader with tabs, viewing controls, lightweight editing, comments, form filling, and visual signing.",
"license": "Apache-2.0",
"homepage": "https://www.markpdf.org",
"repository": {
"type": "git",
"url": "https://github.com/cwik-tech/MarkPDF.git"
},
"main": "dist-electron/bootstrap.js",
"scripts": {
"dev": "concurrently -k \"vite --host 127.0.0.1\" \"wait-on tcp:5173 && npm run electron:dev\"",
"electron:dev": "npm run build:core && npm run build:cli && tsc -p tsconfig.electron.json && cross-env VITE_DEV_SERVER_URL=http://127.0.0.1:5173 electron .",
"build": "npm run typecheck && npm run typecheck:core && npm run typecheck:cli && npm run typecheck:mcp && npm run typecheck:tests && npm run build:core && npm run build:cli && npm run build:mcp && tsc -p tsconfig.electron.json && vite build",
"preview": "vite preview --host 127.0.0.1",
"start": "electron .",
"typecheck": "tsc --noEmit",
"test": "vitest run --maxWorkers=2",
"test:e2e": "npm run build:core && npm run build:cli && npm run build:mcp && tsc -p tsconfig.electron.json && playwright test",
"package": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder",
"dist:mac": "npm run build && electron-builder --mac --arm64",
"dist:mac:arm64": "npm run build && electron-builder --mac --arm64",
"release:mac:arm64": "npm run build && electron-builder --mac --arm64 --publish always",
"build:core": "tsc -p tsconfig.core.json",
"build:cli": "tsc -p tsconfig.cli.json",
"build:mcp": "tsc -p tsconfig.mcp.json",
"typecheck:core": "tsc -p tsconfig.core.json --noEmit",
"typecheck:cli": "tsc -p tsconfig.cli.json --noEmit",
"typecheck:mcp": "tsc -p tsconfig.mcp.json --noEmit",
"typecheck:tests": "tsc -p tsconfig.test.json --noEmit",
"pretest": "npm run build:core && npm run build:cli && npm run build:mcp",
"test:live": "vitest run --config vitest.live.config.ts",
"pretypecheck:core": "npm run build:core",
"pretypecheck:cli": "npm run build:core",
"pretypecheck:mcp": "npm run build:core && npm run build:cli",
"pretypecheck:tests": "npm run build:core && npm run build:cli && npm run build:mcp",
"pretest:e2e": "npm run build:core && npm run build:cli && npm run build:mcp"
},
"dependencies": {
"@firecrawl/pdf-inspector": "1.17.0",
"@huggingface/transformers": "^4.2.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@napi-rs/canvas": "^0.1.100",
"@tesseract.js-data/eng": "1.0.0",
"@vitejs/plugin-react": "^5.1.1",
"better-sqlite3": "13.0.3",
"electron-store": "^11.0.2",
"lucide-react": "^0.556.0",
"mermaid": "11.17.0",
"pdf-lib": "^1.17.1",
"pdfjs-dist": "^5.4.394",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"react-resizable-panels": "^4.11.2",
"tesseract.js": "^7.0.0"
},
"devDependencies": {
"@playwright/test": "^1.61.1",
"@types/better-sqlite3": "^9.6.0",
"@types/node": "^25.0.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"electron": "^39.2.7",
"electron-builder": "^26.0.12",
"playwright": "^1.61.1",
"typescript": "^5.9.3",
"vite": "^7.2.6",
"vite-plugin-static-copy": "^4.1.0",
"vitest": "^4.1.9",
"wait-on": "^9.0.3"
},
"build": {
"appId": "tech.cwik.markpdf",
"productName": "MarkPDF",
"afterSign": "scripts/notarize-macos.cjs",
"files": [
"dist/**/*",
"dist-electron/**/*",
"dist-core/**/*",
"dist-cli/**/*",
"dist-mcp/**/*",
"assets/tokenizers/**",
"build/icon.png",
"package.json",
"!node_modules/onnxruntime-node/bin/napi-v6/linux/**/*",
"!node_modules/onnxruntime-node/bin/napi-v6/win32/**/*",
"!node_modules/better-sqlite3/prebuilds/darwin-x64.node",
"!node_modules/better-sqlite3/prebuilds/linux-*.node",
"!node_modules/better-sqlite3/prebuilds/linuxmusl-*.node",
"!node_modules/better-sqlite3/prebuilds/win32-*.node",
"!node_modules/better-sqlite3/deps/**/*",
"!node_modules/better-sqlite3/src/**/*",
"!node_modules/@tesseract.js-data/eng/4.0.0/**"
],
"directories": {
"buildResources": "build"
},
"icon": "build/icon.png",
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"arm64"
]
},
{
"target": "zip",
"arch": [
"arm64"
]
}
],
"category": "public.app-category.productivity",
"icon": "build/icon.icns",
"notarize": false,
"extendInfo": {
"CFBundleDocumentTypes": [
{
"CFBundleTypeExtensions": [
"pdf"
],
"CFBundleTypeIconFile": "icon.icns",
"CFBundleTypeName": "PDF Document",
"CFBundleTypeRole": "Editor",
"LSHandlerRank": "Alternate",
"LSItemContentTypes": [
"com.adobe.pdf"
]
},
{
"CFBundleTypeExtensions": [
"md",
"markdown"
],
"CFBundleTypeIconFile": "icon.icns",
"CFBundleTypeName": "Markdown Document",
"CFBundleTypeRole": "Editor",
"LSHandlerRank": "Alternate",
"LSItemContentTypes": [
"net.daringfireball.markdown"
]
},
{
"CFBundleTypeExtensions": [
"png",
"jpg",
"jpeg",
"webp",
"gif"
],
"CFBundleTypeIconFile": "icon.icns",
"CFBundleTypeName": "Image File",
"CFBundleTypeRole": "Editor",
"LSHandlerRank": "Alternate",
"LSItemContentTypes": [
"public.png",
"public.jpeg",
"org.webmproject.webp",
"com.compuserve.gif"
]
}
]
}
},
"dmg": {
"artifactName": "MarkPDF-mac-${arch}.${ext}",
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"icon": "build/icon.ico"
},
"publish": {
"provider": "github",
"owner": "cwik-tech",
"repo": "MarkPDF",
"releaseType": "release"
},
"asarUnpack": [
"**/*.node",
"node_modules/onnxruntime-node/bin/**",
"node_modules/@img/**",
"node_modules/tesseract.js/src/worker-script/**",
"node_modules/tesseract.js-core/**",
"node_modules/@tesseract.js-data/eng/**"
]
}
}