@tschk/moonshine-cli 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +10 -6
  2. package/src/preview.ts +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tschk/moonshine-cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Bun CLI for moonshine — new, dev, build, preview, inspect, compile",
5
5
  "license": "ISC",
6
6
  "type": "module",
@@ -19,16 +19,20 @@
19
19
  "crepus"
20
20
  ],
21
21
  "dependencies": {
22
- "@tschk/moonshine-compiler": "^0.3.1",
23
- "@tschk/moonshine-framework": "^0.3.1",
24
- "@tschk/moonshine-server": "^0.3.1",
25
- "@tschk/moonshine-deploy-bun": "^0.3.1",
26
- "@tschk/moonshine-react": "^0.3.1"
22
+ "@tschk/crepus-moonshine": "^0.3.2",
23
+ "@tschk/moonshine-compiler": "^0.3.2",
24
+ "@tschk/moonshine-deploy-bun": "^0.3.2",
25
+ "@tschk/moonshine-framework": "^0.3.2",
26
+ "@tschk/moonshine-react": "^0.3.2",
27
+ "@tschk/moonshine-server": "^0.3.2"
27
28
  },
28
29
  "scripts": {
29
30
  "format": "bunx prettier --check .",
30
31
  "lint": "bunx oxlint .",
31
32
  "typecheck": "exit 0",
32
33
  "test": "bun test"
34
+ },
35
+ "optionalDependencies": {
36
+ "@tschk/moonshine-solid": "^0.3.2"
33
37
  }
34
38
  }
package/src/preview.ts CHANGED
@@ -3,10 +3,11 @@ import { resolve } from "node:path";
3
3
  import { createBunServer } from "@tschk/moonshine-deploy-bun";
4
4
  import { readManifest } from "@tschk/moonshine-compiler";
5
5
  import { createRequestHandler } from "@tschk/moonshine-server";
6
- import type {
7
- MoonshineManifest,
8
- Renderer,
9
- RouteArtifact,
6
+ import {
7
+ PUBLIC_DIR,
8
+ type MoonshineManifest,
9
+ type Renderer,
10
+ type RouteArtifact,
10
11
  } from "@tschk/moonshine-framework";
11
12
  import { findConfig, loadConfig, type MoonshineCliConfig } from "./config.js";
12
13
 
@@ -75,7 +76,7 @@ export async function startPreview(options: {
75
76
  const manifest = resolveManifest(projectDir, raw);
76
77
  const config = await loadConfigMaybe(projectDir);
77
78
  const renderer = await resolveRenderer(config.renderer);
78
- const staticDir = resolve(projectDir, ".moonshine");
79
+ const staticDir = resolve(projectDir, ".moonshine", PUBLIC_DIR);
79
80
  const serverBundlePath = resolve(
80
81
  projectDir,
81
82
  ".moonshine",