@creately/rdm-canvas 0.1.0 → 0.1.1
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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* rdm-canvas CLI wrapper — delegates to bun for TypeScript execution.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { execFileSync } from 'node:child_process';
|
|
8
|
+
import { join, dirname } from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
|
|
11
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const impl = join(__dirname, 'rdm-canvas-impl.ts');
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
execFileSync('bun', ['run', impl, ...process.argv.slice(2)], {
|
|
16
|
+
stdio: 'inherit',
|
|
17
|
+
env: process.env,
|
|
18
|
+
});
|
|
19
|
+
} catch (e) {
|
|
20
|
+
if (e.status) process.exit(e.status);
|
|
21
|
+
console.error('rdm-canvas requires bun. Install it: curl -fsSL https://bun.sh/install | bash');
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creately/rdm-canvas",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Local server for live RDM diagram rendering with bidirectional file sync",
|
|
5
5
|
"bin": {
|
|
6
|
-
"rdm-canvas": "./bin/rdm-canvas.
|
|
6
|
+
"rdm-canvas": "./bin/rdm-canvas.js"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
File without changes
|