@base44-preview/cli 0.0.15-pr.19.d9072f9 → 0.0.15-pr.87.c55c15e

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.
Files changed (29) hide show
  1. package/dist/{program.js → cli/index.js} +335 -208
  2. package/package.json +8 -14
  3. package/bin/dev.cmd +0 -2
  4. package/bin/dev.js +0 -20
  5. package/bin/run.cmd +0 -2
  6. package/bin/run.js +0 -20
  7. /package/dist/{templates → cli/templates}/backend-and-client/.nvmrc +0 -0
  8. /package/dist/{templates → cli/templates}/backend-and-client/README.md +0 -0
  9. /package/dist/{templates → cli/templates}/backend-and-client/base44/app.jsonc.ejs +0 -0
  10. /package/dist/{templates → cli/templates}/backend-and-client/base44/config.jsonc.ejs +0 -0
  11. /package/dist/{templates → cli/templates}/backend-and-client/base44/entities/task.jsonc +0 -0
  12. /package/dist/{templates → cli/templates}/backend-and-client/components.json +0 -0
  13. /package/dist/{templates → cli/templates}/backend-and-client/index.html +0 -0
  14. /package/dist/{templates → cli/templates}/backend-and-client/jsconfig.json +0 -0
  15. /package/dist/{templates → cli/templates}/backend-and-client/package.json +0 -0
  16. /package/dist/{templates → cli/templates}/backend-and-client/postcss.config.js +0 -0
  17. /package/dist/{templates → cli/templates}/backend-and-client/src/App.jsx +0 -0
  18. /package/dist/{templates → cli/templates}/backend-and-client/src/api/base44Client.js.ejs +0 -0
  19. /package/dist/{templates → cli/templates}/backend-and-client/src/components/Base44Logo.jsx +0 -0
  20. /package/dist/{templates → cli/templates}/backend-and-client/src/components/ui/button.jsx +0 -0
  21. /package/dist/{templates → cli/templates}/backend-and-client/src/components/ui/checkbox.jsx +0 -0
  22. /package/dist/{templates → cli/templates}/backend-and-client/src/components/ui/input.jsx +0 -0
  23. /package/dist/{templates → cli/templates}/backend-and-client/src/index.css +0 -0
  24. /package/dist/{templates → cli/templates}/backend-and-client/src/main.jsx +0 -0
  25. /package/dist/{templates → cli/templates}/backend-and-client/tailwind.config.js +0 -0
  26. /package/dist/{templates → cli/templates}/backend-and-client/vite.config.js +0 -0
  27. /package/dist/{templates → cli/templates}/backend-only/base44/app.jsonc.ejs +0 -0
  28. /package/dist/{templates → cli/templates}/backend-only/base44/config.jsonc.ejs +0 -0
  29. /package/dist/{templates → cli/templates}/templates.json +0 -0
package/package.json CHANGED
@@ -1,26 +1,23 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.15-pr.19.d9072f9",
3
+ "version": "0.0.15-pr.87.c55c15e",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
- "main": "./dist/program.js",
7
- "bin": {
8
- "base44": "./bin/run.js"
9
- },
6
+ "main": "./dist/cli/index.js",
7
+ "bin": "./dist/cli/index.js",
10
8
  "exports": {
11
- ".": "./dist/program.js"
9
+ ".": "./dist/cli/index.js"
12
10
  },
13
11
  "files": [
14
- "dist",
15
- "bin"
12
+ "dist"
16
13
  ],
17
14
  "scripts": {
18
15
  "build": "tsdown",
19
16
  "typecheck": "tsc --noEmit",
20
- "dev": "./bin/dev.js",
21
- "start": "./bin/run.js",
17
+ "dev": "tsx src/cli/index.ts",
18
+ "start": "node dist/cli/index.js",
22
19
  "clean": "rm -rf dist",
23
- "lint": "eslint src tests",
20
+ "lint": "eslint src",
24
21
  "test": "vitest run",
25
22
  "test:watch": "vitest"
26
23
  },
@@ -56,12 +53,9 @@
56
53
  "json5": "^2.2.3",
57
54
  "ky": "^1.14.2",
58
55
  "lodash.kebabcase": "^4.1.1",
59
- "msw": "^2.12.7",
60
56
  "open": "^11.0.0",
61
57
  "p-wait-for": "^6.0.0",
62
- "strip-ansi": "^7.1.2",
63
58
  "tar": "^7.5.4",
64
- "tmp-promise": "^3.0.3",
65
59
  "tsdown": "^0.12.4",
66
60
  "tsx": "^4.19.2",
67
61
  "typescript": "^5.7.2",
package/bin/dev.cmd DELETED
@@ -1,2 +0,0 @@
1
- @echo off
2
- npx tsx "%~dp0\dev.js" %*
package/bin/dev.js DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env tsx
2
- import { program, CLIExitError } from '../src/cli/program.ts';
3
-
4
- try {
5
- await program.parseAsync();
6
- } catch (e) {
7
- if (e instanceof CLIExitError) {
8
- process.exit(e.code); // Clean exit, no stack trace
9
- }
10
- // Commander throws for --help and --version with exitCode 0
11
- if (e?.code === 'commander.helpDisplayed' || e?.code === 'commander.version') {
12
- process.exit(0);
13
- }
14
- // For other Commander errors, exit with the provided code
15
- if (e?.exitCode !== undefined) {
16
- process.exit(e.exitCode);
17
- }
18
- console.error(e);
19
- process.exit(1);
20
- }
package/bin/run.cmd DELETED
@@ -1,2 +0,0 @@
1
- @echo off
2
- node "%~dp0\run.js" %*
package/bin/run.js DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env node
2
- import { program, CLIExitError } from '../dist/program.js';
3
-
4
- try {
5
- await program.parseAsync();
6
- } catch (e) {
7
- if (e instanceof CLIExitError) {
8
- process.exit(e.code); // Clean exit, no stack trace
9
- }
10
- // Commander throws for --help and --version with exitCode 0
11
- if (e?.code === 'commander.helpDisplayed' || e?.code === 'commander.version') {
12
- process.exit(0);
13
- }
14
- // For other Commander errors, exit with the provided code
15
- if (e?.exitCode !== undefined) {
16
- process.exit(e.exitCode);
17
- }
18
- console.error(e);
19
- process.exit(1);
20
- }