@suluk/platform 0.5.1 → 0.5.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 +1 -1
  2. package/src/plan.ts +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suluk/platform",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "The platform generator (C051): write one `definePlatform` manifest → it plans the shadcn-registry adds, generates the wired Hono entry, and merges each module's provision fragment into a single provision.config. The manifest compiles to a shadcn-add list + a C047 provision.config; the generator runs the adds + `@suluk/provision`. Turns the Suluk backend registry into a one-command platform. CANDIDATE tooling.",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/plan.ts CHANGED
@@ -78,7 +78,7 @@ export function planPlatform(input: PlatformManifest | Platform): PlatformPlan {
78
78
  entry: buildEntry(services, manifest.opts, wiring, catalog, local),
79
79
  provisionConfig: buildProvisionConfig(services, catalog),
80
80
  packageJson: buildPackageJson(manifest.name, services, catalog, local),
81
- tsconfig: buildTsconfig(),
81
+ tsconfig: buildTsconfig(local),
82
82
  componentsJson: buildComponentsJson(),
83
83
  envExample: buildEnvExample(env),
84
84
  wranglerToml: buildWranglerToml(manifest.name, services, env, manifest.vars ?? {}),
@@ -586,13 +586,15 @@ export function mergePackageJson(baselineJson: string, existingJson: string | nu
586
586
  return JSON.stringify(merged, null, 2) + "\n";
587
587
  }
588
588
 
589
- function buildTsconfig(): string {
589
+ function buildTsconfig(local = false): string {
590
590
  return (
591
591
  JSON.stringify(
592
592
  {
593
593
  compilerOptions: { module: "ESNext", target: "ESNext", moduleResolution: "bundler", types: ["node", "@cloudflare/workers-types"], skipLibCheck: true, strict: true, noEmit: true },
594
594
  include: ["src", "provision.config.ts", "platform.config.ts"],
595
- exclude: ["src/**/*.test.ts"], // the bun:test journeys harness runs under `bun test`, not the Worker build
595
+ // src/dev.ts is a bun-only runtime file (bun:sqlite + Bun globals), NOT Worker code exclude it from the Worker
596
+ // typecheck (it pulls @suluk/cloudflare/local, which the workers-types config can't type); it's boot-tested instead.
597
+ exclude: ["src/**/*.test.ts", ...(local ? ["src/dev.ts"] : [])], // the bun:test journeys harness runs under `bun test`, not the Worker build
596
598
  },
597
599
  null,
598
600
  2,