Skip to content

AI-native design editor. Open-source Figma alternative.

Make CLI available as `bun open-pencil` in workspace

Danila Poyarkov33435cc1d1ec
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