@kitschpatrol/tldraw-cli 5.0.4 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +218 -203
- package/dist/.DS_Store +0 -0
- package/dist/lib/index.js +217 -202
- package/dist/tldraw/assets/{index-BdsRJ-XO.js → index-BqlfB2-Z.js} +64 -64
- package/dist/tldraw/index.html +1 -1
- package/package.json +16 -14
- package/readme.md +1 -1
package/dist/tldraw/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>tldraw via tldraw-cli</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BqlfB2-Z.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-CfRYDVEH.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/tldraw-cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "A CLI tool and TypeScript library for exporting tldraw sketches to PNG or SVG images.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tldraw",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@fontsource/inter": "^5.2.8",
|
|
41
41
|
"@hono/node-server": "^1.19.6",
|
|
42
42
|
"hono": "^4.10.7",
|
|
43
|
-
"puppeteer": "^24.
|
|
43
|
+
"puppeteer": "^24.32.0",
|
|
44
44
|
"uint8array-extras": "^1.5.0",
|
|
45
45
|
"yargs": "^18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@kitschpatrol/shared-config": "^5.
|
|
48
|
+
"@kitschpatrol/shared-config": "^5.10.0",
|
|
49
49
|
"@sindresorhus/slugify": "^3.0.0",
|
|
50
|
-
"@tldraw/assets": "^4.2.
|
|
50
|
+
"@tldraw/assets": "^4.2.1",
|
|
51
51
|
"@types/node": "^20.19.25",
|
|
52
52
|
"@types/react": "^19.2.7",
|
|
53
53
|
"@types/react-dom": "^19.2.3",
|
|
@@ -55,28 +55,30 @@
|
|
|
55
55
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
56
56
|
"bumpp": "^10.3.2",
|
|
57
57
|
"cheerio": "^1.1.2",
|
|
58
|
-
"esbuild": "^0.27.
|
|
58
|
+
"esbuild": "^0.27.1",
|
|
59
59
|
"get-port": "^7.1.0",
|
|
60
|
-
"mdat-plugin-cli-help": "^1.0.
|
|
60
|
+
"mdat-plugin-cli-help": "^1.0.4",
|
|
61
61
|
"nanoid": "^5.1.6",
|
|
62
62
|
"natural-orderby": "^5.0.0",
|
|
63
|
+
"node-addon-api": "^8.5.0",
|
|
64
|
+
"node-gyp": "^12.1.0",
|
|
63
65
|
"open": "^11.0.0",
|
|
64
66
|
"path-type": "^6.0.0",
|
|
65
67
|
"picocolors": "^1.1.1",
|
|
66
68
|
"plur": "^6.0.0",
|
|
67
69
|
"pretty-ms": "^9.3.0",
|
|
68
|
-
"react": "^19.2.
|
|
69
|
-
"react-dom": "^19.2.
|
|
70
|
+
"react": "^19.2.1",
|
|
71
|
+
"react-dom": "^19.2.1",
|
|
70
72
|
"safe-stable-stringify": "^2.5.0",
|
|
71
73
|
"sharp": "^0.34.5",
|
|
72
74
|
"sharp-phash": "^2.2.0",
|
|
73
75
|
"strip-ansi": "^7.1.2",
|
|
74
|
-
"tldraw": "^4.2.
|
|
75
|
-
"tsx": "^4.
|
|
76
|
+
"tldraw": "^4.2.1",
|
|
77
|
+
"tsx": "^4.21.0",
|
|
76
78
|
"typescript": "~5.9.3",
|
|
77
79
|
"untildify": "^6.0.0",
|
|
78
|
-
"vite": "^7.2.
|
|
79
|
-
"vitest": "^4.0.
|
|
80
|
+
"vite": "^7.2.6",
|
|
81
|
+
"vitest": "^4.0.15"
|
|
80
82
|
},
|
|
81
83
|
"engines": {
|
|
82
84
|
"node": ">=20.19.0"
|
|
@@ -86,8 +88,8 @@
|
|
|
86
88
|
},
|
|
87
89
|
"scripts": {
|
|
88
90
|
"build": "pnpm run build:tldraw && pnpm run build:lib && pnpm run build:cli",
|
|
89
|
-
"build:cli": "tsx ./scripts/build-cli.ts
|
|
90
|
-
"build:lib": "tsx ./scripts/build-lib.ts && tsc -p tsconfig.
|
|
91
|
+
"build:cli": "tsx ./scripts/build-cli.ts",
|
|
92
|
+
"build:lib": "tsx ./scripts/build-lib.ts && tsc -p tsconfig.build.json",
|
|
91
93
|
"build:tldraw": "pnpm run tldraw:copy-assets && vite build",
|
|
92
94
|
"clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
|
|
93
95
|
"dev": "pnpm run dev:tldraw",
|
package/readme.md
CHANGED
|
@@ -498,7 +498,7 @@ This tool is not a part of the official tldraw project.
|
|
|
498
498
|
|
|
499
499
|
Due to the architecture of tldraw, export depends on functionality provided by a web browser. So, behind the scenes, this app serves a local instance of tldraw, then loads a `.tldr` and invokes the export download via the [Puppeteer](https://pptr.dev) headless browser automation tool.
|
|
500
500
|
|
|
501
|
-
This can be a bit slow
|
|
501
|
+
This can be a bit slow (exporting usually takes a second or two), but in the context of a statically-generated content pipeline it's not the end of the world.
|
|
502
502
|
|
|
503
503
|
In terms of Puppeteer vs. Playwright and other headless browser automation tools, it [looks like](https://www.checklyhq.com/blog/puppeteer-vs-selenium-vs-playwright-speed-comparison/) Puppeteer's performance likely compares favorably. (Though I have not tested and benchmarked the alternatives in the specific context of `tldraw-cli`.)
|
|
504
504
|
|