@stdout-design/cli 0.1.1 → 0.1.3

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/dist/schema.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as defineSchema } from "./validation-CMTs74Vm-C3_d2dBv.mjs";
1
+ import { defineSchema } from "@stdout-design/core/schema";
2
2
  export { defineSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdout-design/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "stdout-design CLI — shallow front door to @stdout-design/core and @stdout-design/dev-server",
5
5
  "keywords": [
6
6
  "cli",
@@ -15,6 +15,9 @@
15
15
  "url": "https://github.com/m7md1alaa/stdout-design/issues"
16
16
  },
17
17
  "license": "MIT",
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
18
21
  "repository": {
19
22
  "type": "git",
20
23
  "url": "git+https://github.com/m7md1alaa/stdout-design/studio.git"
@@ -53,31 +56,25 @@
53
56
  },
54
57
  "dependencies": {
55
58
  "@clack/prompts": "^1.7.0",
56
- "@takumi-rs/core": "^2.0.0",
57
- "@takumi-rs/helpers": "^2.0.0",
58
- "@vitejs/plugin-react": "^6.0.1",
59
- "chokidar": "^5.0.0",
59
+ "@stdout-design/core": "^0.1.1",
60
60
  "commander": "^15.0.0",
61
- "csv-parse": "^7.0.1",
62
- "hono": "^4.12.26",
63
- "kysely": "^0.29.3",
64
- "kysely-bun-sqlite": "^0.4.0",
65
- "ora": "^9.4.1",
66
- "p-limit": "^7.0.0",
67
- "proper-lockfile": "^4.1.2",
68
- "react": "19.2.7",
69
- "takumi-js": "^2.0.0",
70
- "vite": "^8.0.12",
71
- "vite-node": "^6.0.0",
72
- "write-file-atomic": "^8.0.0",
73
- "zod": "^4.4.3"
61
+ "package-manager-detector": "^1.8.0"
74
62
  },
75
63
  "devDependencies": {
76
64
  "@stdout-design/config": "workspace:*",
77
- "@stdout-design/core": "workspace:*",
78
- "@stdout-design/dev-server": "workspace:*",
79
- "@types/react": "19.2.17",
80
- "tsdown": "^0.22.4",
81
- "typescript": "^7"
65
+ "tsdown": "^0.22.5",
66
+ "typescript": "^7.0.2"
67
+ },
68
+ "peerDependencies": {
69
+ "@stdout-design/dev-server": "^0.1.1",
70
+ "@stdout-design/web-ui": "^0.1.1"
71
+ },
72
+ "peerDependenciesMeta": {
73
+ "@stdout-design/dev-server": {
74
+ "optional": true
75
+ },
76
+ "@stdout-design/web-ui": {
77
+ "optional": true
78
+ }
82
79
  }
83
80
  }
@@ -1,22 +0,0 @@
1
- import { n as formatCacheStats, t as formatCacheCleanResult } from "./index.mjs";
2
- import { r as RenderCache } from "./dist-Dm76-R-V.mjs";
3
- import path from "node:path";
4
- //#region src/commands/cache.ts
5
- const cacheStats = async (rootDir, options) => {
6
- const cache = new RenderCache({ cacheDir: path.resolve(rootDir ?? process.cwd(), ".studio-cache") });
7
- await cache.init();
8
- const stats = await cache.stats();
9
- cache.close();
10
- if (options.json) console.log(JSON.stringify(stats, null, 2));
11
- else console.log(formatCacheStats(stats));
12
- };
13
- const cacheClean = async (rootDir, options) => {
14
- const cache = new RenderCache({ cacheDir: path.resolve(rootDir ?? process.cwd(), ".studio-cache") });
15
- await cache.init();
16
- const result = await cache.clean();
17
- cache.close();
18
- if (options.json) console.log(JSON.stringify(result));
19
- else console.log(formatCacheCleanResult(result.freedBytes));
20
- };
21
- //#endregion
22
- export { cacheClean, cacheStats };
@@ -1,25 +0,0 @@
1
- //#region src/commands/dev.ts
2
- const dev = async (rootDir, options) => {
3
- const { createDevServer } = await import("./dist-CZVUmY-d.mjs");
4
- const resolvedRoot = rootDir ?? process.cwd();
5
- const port = Number(options.port ?? "3000");
6
- console.log(`Starting studio dev server for ${resolvedRoot}...`);
7
- const server = await createDevServer({
8
- port,
9
- rootDir: resolvedRoot
10
- });
11
- Bun.serve({
12
- fetch: server.app.fetch,
13
- port: server.port
14
- });
15
- console.log(`Studio dev server running on http://localhost:${server.port}`);
16
- const shutdown = async () => {
17
- console.log("\nShutting down...");
18
- await server.close();
19
- process.exit(0);
20
- };
21
- process.on("SIGINT", shutdown);
22
- process.on("SIGTERM", shutdown);
23
- };
24
- //#endregion
25
- export { dev };