@embeddables/cli 0.4.1 → 0.4.2

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/README.md CHANGED
@@ -26,6 +26,7 @@ npm install
26
26
  | `npm run lint` | ESLint |
27
27
  | `npm run format` | Prettier (write) |
28
28
  | `npm run format:check` | Prettier (check only) |
29
+ | `npm run build-workbench` | Build Workbench bundle for CDN (e.g. `-- --out workbench-worker`) |
29
30
 
30
31
  ## Local testing
31
32
 
@@ -49,7 +50,7 @@ npx tsx src/cli.ts build -i <embeddable-id>
49
50
  ## Project structure
50
51
 
51
52
  - **`src/cli.ts`** — Commander setup and command registration
52
- - **`src/commands/`** — Implementations for `init`, `login`, `logout`, `pull`, `branch`, `build`, `save`, `dev`, `build-workbench`
53
+ - **`src/commands/`** — Implementations for `init`, `login`, `logout`, `pull`, `branch`, `build`, `save`, `dev`
53
54
  - **`src/compiler/`** — TSX → JSON compile and JSON → TSX reverse-compile
54
55
  - **`src/config/`** — `embeddables.json` and project config
55
56
  - **`src/auth/`** — Login/logout and token storage
@@ -57,6 +58,7 @@ npx tsx src/cli.ts build -i <embeddable-id>
57
58
  - **`src/proxy/`** — Dev server and engine proxy
58
59
  - **`src/components/`** — React primitives exported as `@embeddables/cli/components`
59
60
  - **`bin/embeddables.mjs`** — Entry script that runs `dist/cli.js`
61
+ - **`scripts/run-build-workbench.ts`** — Entry for `npm run build-workbench` (builds Workbench from `src/workbench/` for CDN deploy)
60
62
  - **`tests/`** — Unit and integration tests (Vitest)
61
63
 
62
64
  ## Publishing
package/dist/cli.js CHANGED
@@ -2,7 +2,6 @@ import { Command } from 'commander';
2
2
  import pc from 'picocolors';
3
3
  import { runBranch } from './commands/branch.js';
4
4
  import { runBuild } from './commands/build.js';
5
- import { runBuildWorkbench } from './commands/build-workbench.js';
6
5
  import { runDev } from './commands/dev.js';
7
6
  import { runInit } from './commands/init.js';
8
7
  import { runLogin } from './commands/login.js';
@@ -100,12 +99,4 @@ program
100
99
  .action(async (opts) => {
101
100
  await runBranch(opts);
102
101
  });
103
- program
104
- .command('build-workbench')
105
- .description('Build Workbench for CDN deployment')
106
- .option('-o, --out <path>', 'Output directory', 'dist/workbench')
107
- .option('--no-minify', 'Disable minification (for debugging)')
108
- .action(async (opts) => {
109
- await runBuildWorkbench(opts);
110
- });
111
102
  await program.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddables/cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "embeddables": "./bin/embeddables.mjs"
@@ -35,6 +35,7 @@
35
35
  "build:watch": "tsc -p tsconfig.json --watch",
36
36
  "dev": "tsx src/cli.ts dev",
37
37
  "dev:watch": "tsx src/cli.ts dev",
38
+ "build-workbench": "tsx scripts/run-build-workbench.ts",
38
39
  "format": "prettier --write .",
39
40
  "format:check": "prettier --check .",
40
41
  "lint": "eslint .",