-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
150 lines (150 loc) · 5.04 KB
/
Copy pathpackage.json
File metadata and controls
150 lines (150 loc) · 5.04 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
{
"name": "@inklayer-dev/core",
"version": "0.3.0",
"description": "One PDF engine for every web framework.",
"keywords": [
"pdf",
"pdf-viewer",
"pdf-annotation",
"annotation",
"konva",
"pdfjs"
],
"author": "Laomai <codefee@foxmail.com>",
"license": "MIT",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/inklayer-dev/inklayer-core.git"
},
"bugs": {
"url": "https://github.com/inklayer-dev/inklayer-core/issues"
},
"homepage": "https://core.inklayer.dev/",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": "^22.13.0 || >=24.0.0"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./viewer": {
"types": "./dist/viewer/index.d.ts",
"import": "./dist/viewer.js",
"require": "./dist/viewer.cjs"
},
"./annotation": {
"types": "./dist/annotation/index.d.ts",
"import": "./dist/annotation.js",
"require": "./dist/annotation.cjs"
},
"./capabilities": {
"types": "./dist/capabilities/index.d.ts",
"import": "./dist/capabilities.js",
"require": "./dist/capabilities.cjs"
},
"./annotation-types": {
"types": "./dist/annotation-types/index.d.ts",
"import": "./dist/annotation-types.js",
"require": "./dist/annotation-types.cjs"
},
"./highlighter": {
"types": "./dist/highlighter/index.d.ts",
"import": "./dist/highlighter.js",
"require": "./dist/highlighter.cjs"
},
"./import/pdfjs": {
"types": "./dist/import/pdfjs/index.d.ts",
"import": "./dist/import/pdfjs.js",
"require": "./dist/import/pdfjs.cjs"
},
"./export/pdf": {
"types": "./dist/export/pdf/index.d.ts",
"import": "./dist/export/pdf.js",
"require": "./dist/export/pdf.cjs"
},
"./export/excel": {
"types": "./dist/export/excel/index.d.ts",
"import": "./dist/export/excel.js",
"require": "./dist/export/excel.cjs"
},
"./style": {
"types": "./dist/style.d.ts",
"default": "./dist/inklayer-core.css"
}
},
"files": [
"dist",
"README.md",
"README.zh-CN.md",
"LICENSE"
],
"sideEffects": [
"./dist/inklayer-core.css"
],
"scripts": {
"dev": "vite --config examples/vanilla/vite.config.ts --open",
"dev:example": "vite --config examples/vanilla/vite.config.ts",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"build": "vite build && tsc -p tsconfig.build.json",
"build:example": "vite build --config examples/vanilla/vite.config.ts --outDir ../../dist-example --emptyOutDir",
"build:framework-examples": "vite build --config examples/framework-consumers/vite.config.ts",
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.framework-examples.json --noEmit",
"lint": "eslint src tests scripts examples/vanilla examples/framework-consumers docs/.vitepress/config.mts docs/.vitepress/theme vite.config.ts vitest.config.ts playwright.config.ts eslint.config.mjs --report-unused-disable-directives",
"test": "vitest run",
"test:browser": "playwright test --project=chromium",
"test:browser:matrix": "playwright test",
"test:watch": "vitest",
"check:comments": "node scripts/check-comments.mjs",
"check:docs": "node scripts/check-docs.mjs",
"check:dependencies": "node scripts/check-dependencies.mjs",
"check:api": "node scripts/check-public-api.mjs",
"check:package": "node scripts/check-package.mjs",
"check:release": "node scripts/check-release.mjs",
"check:consumer": "node scripts/check-consumer.mjs",
"version": "node scripts/sync-version.mjs",
"benchmark": "npm run build && npm run build:example && node --expose-gc scripts/benchmark.mjs",
"check": "npm run typecheck && npm run lint && npm run check:comments && npm run check:docs && npm run check:dependencies && npm run test && npm run test:browser && npm run build && npm run build:example && npm run build:framework-examples && npm run docs:build && npm run check:api && npm run check:package && npm run check:consumer"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@playwright/test": "^1.62.1",
"@types/node": "^24.10.0",
"@types/react": "^18.3.31",
"@types/react-dom": "^18.3.7",
"eslint": "^9.39.5",
"globals": "^16.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^6.0.3",
"typescript-eslint": "^8.66.0",
"vite": "^8.2.1",
"vitepress": "^1.6.4",
"vitest": "^4.1.10",
"vue": "^3.5.42"
},
"dependencies": {
"@pdf-lib/fontkit": "^1.1.1",
"exceljs": "^4.4.0",
"konva": "^10.3.0",
"pdf-lib": "^1.17.1",
"pdfjs-dist": "^6.2.108"
},
"overrides": {
"uuid": "^11.1.1",
"vitepress": {
"vite": "6.4.3"
}
}
}