@kitschpatrol/tldraw-cli 5.0.13 → 5.0.14
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/dist/.DS_Store +0 -0
- package/dist/bin/cli.js +3 -3
- package/dist/lib/index.js +2 -2
- package/dist/tldraw/assets/index-DV6RkLqi.js +501 -0
- package/dist/tldraw/index.html +1 -1
- package/package.json +21 -15
- package/readme.md +2 -7
- package/dist/tldraw/assets/index-Dur5mwK7.js +0 -501
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-DV6RkLqi.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-DWlTSBfy.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.14",
|
|
4
4
|
"description": "A CLI tool and TypeScript library for exporting tldraw sketches to PNG or SVG images.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tldraw",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"dist/*"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@hono/node-server": "^1.19.
|
|
46
|
+
"@hono/node-server": "^1.19.12",
|
|
47
47
|
"@sindresorhus/slugify": "^3.0.0",
|
|
48
48
|
"@types/node": "^20.19.37",
|
|
49
49
|
"cheerio": "^1.2.0",
|
|
50
|
-
"get-port": "^7.
|
|
51
|
-
"hono": "^4.12.
|
|
50
|
+
"get-port": "^7.2.0",
|
|
51
|
+
"hono": "^4.12.9",
|
|
52
52
|
"nanoid": "^5.1.7",
|
|
53
53
|
"natural-orderby": "^5.0.0",
|
|
54
54
|
"open": "^11.0.0",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@arethetypeswrong/core": "^0.18.2",
|
|
66
|
-
"@blazediff/vitest": "^1.1.
|
|
66
|
+
"@blazediff/vitest": "^1.1.12",
|
|
67
67
|
"@fontsource/inter": "^5.2.8",
|
|
68
|
-
"@kitschpatrol/shared-config": "^
|
|
69
|
-
"@tldraw/assets": "^4.5.
|
|
68
|
+
"@kitschpatrol/shared-config": "^7.0.0",
|
|
69
|
+
"@tldraw/assets": "^4.5.6",
|
|
70
70
|
"@types/react": "^19.2.14",
|
|
71
71
|
"@types/react-dom": "^19.2.3",
|
|
72
72
|
"@types/yargs": "^17.0.35",
|
|
73
73
|
"@vitejs/plugin-react": "^6.0.1",
|
|
74
74
|
"bumpp": "^11.0.1",
|
|
75
|
-
"esbuild": "^0.27.
|
|
76
|
-
"mdat-plugin-cli-help": "^
|
|
77
|
-
"node-addon-api": "^8.
|
|
75
|
+
"esbuild": "^0.27.5",
|
|
76
|
+
"mdat-plugin-cli-help": "^2.0.0",
|
|
77
|
+
"node-addon-api": "^8.7.0",
|
|
78
78
|
"node-gyp": "^12.2.0",
|
|
79
79
|
"publint": "^0.3.18",
|
|
80
80
|
"react": "^19.2.4",
|
|
@@ -82,16 +82,22 @@
|
|
|
82
82
|
"rolldown": "1.0.0-rc.10",
|
|
83
83
|
"safe-stable-stringify": "^2.5.0",
|
|
84
84
|
"strip-ansi": "^7.2.0",
|
|
85
|
-
"tldraw": "^4.5.
|
|
86
|
-
"tsdown": "^0.21.
|
|
85
|
+
"tldraw": "^4.5.6",
|
|
86
|
+
"tsdown": "^0.21.7",
|
|
87
87
|
"tsx": "^4.21.0",
|
|
88
88
|
"typescript": "~5.9.3",
|
|
89
|
-
"vite": "^8.0.
|
|
90
|
-
"vitest": "^4.1.
|
|
89
|
+
"vite": "^8.0.3",
|
|
90
|
+
"vitest": "^4.1.2"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
93
|
"node": ">=20.19.0"
|
|
94
94
|
},
|
|
95
|
+
"devEngines": {
|
|
96
|
+
"runtime": {
|
|
97
|
+
"name": "node",
|
|
98
|
+
"version": ">=22.18.0"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
95
101
|
"publishConfig": {
|
|
96
102
|
"access": "public"
|
|
97
103
|
},
|
|
@@ -109,6 +115,6 @@
|
|
|
109
115
|
"release": "bumpp --commit 'Release: %s' && pnpm run build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') && pnpm publish",
|
|
110
116
|
"test": "vitest run",
|
|
111
117
|
"test:watch": "pnpm run build && vitest",
|
|
112
|
-
"tldraw:copy-assets": "
|
|
118
|
+
"tldraw:copy-assets": "pnpm tsx ./scripts/copy-assets.ts"
|
|
113
119
|
}
|
|
114
120
|
}
|
package/readme.md
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
<!--+ Warning: Content inside HTML comment blocks was generated by mdat and may be overwritten. +-->
|
|
2
|
-
|
|
3
1
|
<!-- title -->
|
|
4
2
|
|
|
5
3
|
# @kitschpatrol/tldraw-cli
|
|
6
4
|
|
|
7
5
|
<!-- /title -->
|
|
8
6
|
|
|
9
|
-
<!-- badges -->
|
|
10
|
-
|
|
11
7
|
[](https://npmjs.com/package/@kitschpatrol/tldraw-cli)
|
|
12
8
|
[](https://opensource.org/licenses/MIT)
|
|
13
|
-
|
|
14
|
-
<!-- /badges -->
|
|
9
|
+
[](https://github.com/kitschpatrol/tldraw-cli/actions/workflows/ci.yml)
|
|
15
10
|
|
|
16
11
|
<!-- description -->
|
|
17
12
|
|
|
@@ -376,7 +371,7 @@ await tldrawToImage('https://www.tldraw.com/s/v2_c_JsxJk8dag6QsrqExukis4')
|
|
|
376
371
|
Mirrors the `tldraw open` CLI command.
|
|
377
372
|
|
|
378
373
|
> [!IMPORTANT]
|
|
379
|
-
> Due to recent tldraw
|
|
374
|
+
> Due to recent tldraw\.com requirements to login before sharing a sketch, opening a _local_ .tldr file with the `location: 'remote'` option is no longer supported.
|
|
380
375
|
|
|
381
376
|
```tsx
|
|
382
377
|
async function tldrawOpen(
|