From 33435cc1d1ec504f6e458c82383516dc75cac15c Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Sun, 1 Mar 2026 01:21:29 +0300 Subject: [PATCH] Make CLI available as `bun open-pencil` in workspace --- bun.lock | 1 + package.json | 4 +++- packages/cli/src/index.ts | 0 3 files changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 packages/cli/src/index.ts diff --git a/bun.lock b/bun.lock index b7b5b8c77..cda05963a 100644 --- a/bun.lock +++ b/bun.lock @@ -5,6 +5,7 @@ "": { "name": "open-pencil-app", "dependencies": { + "@open-pencil/cli": "workspace:*", "@open-pencil/core": "workspace:*", "@tailwindcss/vite": "^4.2.1", "@tauri-apps/api": "^2", diff --git a/package.json b/package.json index 926d6f962..d16c90c59 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "test:update": "playwright test --project=openpencil --update-snapshots", "test:figma": "playwright test --project=figma", "figma:debug": "open -a Figma --args --remote-debugging-port=9222", - "test:unit": "bun test ./tests/engine" + "test:unit": "bun test ./tests/engine", + "open-pencil": "bun packages/cli/src/index.ts" }, "dependencies": { "@tailwindcss/vite": "^4.2.1", @@ -25,6 +26,7 @@ "@tauri-apps/plugin-dialog": "^2.6.0", "@tauri-apps/plugin-fs": "^2.4.5", "@tauri-apps/plugin-opener": "^2", + "@open-pencil/cli": "workspace:*", "@open-pencil/core": "workspace:*", "@vueuse/core": "^14.2.1", "canvaskit-wasm": "^0.40.0", diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts old mode 100644 new mode 100755