-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
76 lines (76 loc) · 1.99 KB
/
Copy pathpackage.json
File metadata and controls
76 lines (76 loc) · 1.99 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
{
"name": "ducsvg",
"version": "0.0.0-development",
"description": "Adapter for converting duc CAD documents to SVG. Built on top of ducjs.",
"private": false,
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./pkg": {
"types": "./pkg/pdf2svg.d.ts",
"import": "./pkg/pdf2svg.js",
"default": "./pkg/pdf2svg.js"
}
},
"sideEffects": false,
"scripts": {
"build": "bun run clean && bun run build:wasm && bun run copy:wasm-to-dist && bun run build:ts",
"build:ts": "vite build && pwd && tsc -p tsconfig.json",
"build:wasm": "cd src/pdf2svg && wasm-pack build --target web --out-dir ../../pkg --release",
"copy:wasm-to-dist": "mkdir -p dist && cp pkg/pdf2svg_bg.wasm dist/ && cp pkg/pdf2svg.js dist/ && cp pkg/pdf2svg.d.ts dist/ && cp pkg/pdf2svg_bg.wasm.d.ts dist/",
"clean": "rm -rf dist pkg && cd src/pdf2svg && cargo clean",
"check-types": "tsc --noEmit",
"test": "bun test",
"semantic-release": "semantic-release"
},
"author": "Ducflair",
"license": "MIT",
"dependencies": {
"ducjs": "workspace:*",
"ducpdf": "workspace:*"
},
"devDependencies": {
"@xmldom/xmldom": "^0.8.11",
"happy-dom": "^20.0.5",
"semantic-release": "^24.1.2",
"typescript": "^5.8.3",
"vite": "^6.0.0",
"vite-plugin-compression": "^0.5.1",
"vitest": "^3.2.4"
},
"files": [
"dist",
"README.md"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/ducflair/duc.git",
"directory": "packages/ducsvg"
},
"homepage": "https://duc.ducflair.com/",
"bugs": {
"url": "https://github.com/ducflair/duc/issues"
},
"keywords": [
"CAD",
"2D",
"Design",
"TypeScript",
"Ducflair",
"Duc",
"SVG",
"Renderer",
"Converter",
"Export"
]
}