-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
89 lines (89 loc) · 2.92 KB
/
package.json
File metadata and controls
89 lines (89 loc) · 2.92 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": "pagyra-js",
"version": "0.0.22",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/celsowm/pagyra-js.git"
},
"homepage": "https://github.com/celsowm/pagyra-js#readme",
"bugs": {
"url": "https://github.com/celsowm/pagyra-js/issues"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js",
"default": "./dist/src/index.js"
},
"./browser": {
"types": "./dist/src/browser-entry.d.ts",
"import": "./dist/browser/pagyra.min.js",
"default": "./dist/browser/pagyra.min.js"
},
"./browser-entry": {
"types": "./dist/src/browser-entry.d.ts",
"import": "./dist/src/browser-entry.js",
"default": "./dist/src/browser-entry.js"
},
"./package.json": "./package.json"
},
"browser": {
"node:path": false,
"node:url": false,
"node:fs/promises": false,
"node:zlib": false,
"node:util": false,
"zlib": false,
"fs": false,
"path": false,
"url": false,
"util": false,
"./src/pdf/font/builtin-fonts.js": "./src/pdf/font/builtin-fonts.browser.js",
"./src/environment/node-environment.js": "./src/environment/node-environment.browser.js",
"./dist/src/pdf/font/builtin-fonts.js": "./dist/src/pdf/font/builtin-fonts.browser.js",
"./dist/src/environment/node-environment.js": "./dist/src/environment/node-environment.browser.js"
},
"scripts": {
"build": "tsc && tsx scripts/copy-brotli-vendor.ts && tsx scripts/copy-font-assets.ts && tsx scripts/build-browser-bundle.ts --target dist --sourcemap --minify",
"check": "tsc --noEmit",
"start": "npm run playground",
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
"validate": "npm run lint && npm test",
"publish:npm": "npm publish --provenance",
"test": "vitest run",
"lint": "eslint src tests --ext .ts,.js",
"playground": "tsx playground/server.ts",
"playground:browser": "tsx scripts/playground-browser-server.ts",
"playground:render": "tsx scripts/render-playground-example.ts --debug-level debug --debug-cats 'layout,paint,pdf'",
"build:browser": "tsx scripts/build-browser-bundle.ts --target dist --sourcemap --minify",
"playground:pages": "tsx scripts/playground-pages-preview.ts"
},
"devDependencies": {
"@types/css": "^0.0.36",
"@types/express": "^4.17.23",
"@types/node": "^22.7.4",
"@typescript-eslint/eslint-plugin": "^8.46.4",
"@typescript-eslint/parser": "^8.46.4",
"esbuild": "^0.21.5",
"eslint": "^9.39.1",
"express": "^4.21.2",
"pdf-parse": "^2.4.5",
"playwright": "^1.57.0",
"tsx": "^4.7.1",
"typescript": "^5.9.0",
"vitest": "^1.6.0"
},
"dependencies": {
"css": "^3.0.0",
"linkedom": "^0.18.12"
}
}