@zero2webmaster/starter-kit 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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # z2w-starter-kit
2
2
 
3
- **Version:** 0.5.1 | **Framework:** 2.13.0
3
+ **Version:** 0.5.2 | **Framework:** 2.13.0
4
4
 
5
5
  > Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
6
6
 
@@ -99,4 +99,4 @@ For licensing inquiries: kerry@zero2webmaster.com.
99
99
  ---
100
100
 
101
101
  *Scaffolded 2026-05-28 via the [[instantiate-z2w-project]] Claude Code skill v1; reconciled against the consolidated skill v1.1.0 (brief-first + Agent Coordination block) on 2026-05-29.*
102
- *Version: 0.5.1 | Last Updated: 2026-07-22*
102
+ *Version: 0.5.2 | Last Updated: 2026-07-22*
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { writeScaffold } from "./writer.js";
2
2
  import type { ScaffoldFile } from "./scaffolders/common.js";
3
3
  import type { StandardDecision } from "./standards.js";
4
- export declare const version = "0.5.1";
4
+ export declare const version = "0.5.2";
5
5
  export type ProjectType = "wp-plugin" | "cf-worker" | "cf-pages" | "nextjs" | "python-service" | "node-service" | "library" | "protocol-repo";
6
6
  export type BrandPreset = "save-the-frogs" | "bansuri-bliss" | "zero2webmaster" | "custom";
7
7
  export type DbStrategy = "none" | "neon-postgres" | "supabase" | "sqlite" | "mysql-wp" | "other";
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import * as path from "node:path";
21
21
  import { Writable } from "node:stream";
22
22
  import { isValidSlug } from "./parse-brief.js";
23
23
  import { writeScaffold } from "./writer.js";
24
- export const version = "0.5.1";
24
+ export const version = "0.5.2";
25
25
  // Canonical enum value-arrays. These live here, next to the type unions they
26
26
  // enumerate, so both the CLI's confirm/wizard flows (which re-export them) and
27
27
  // the programmatic `validateScaffoldInputs` share one source of truth. Keep
@@ -186,9 +186,17 @@ const DOCKERFILE_TEMPLATE = `# {{slug}} — Cloud Run container.
186
186
  # Cloud Run injects the PORT environment variable at runtime (default 8080);
187
187
  # src/index.ts listens on it. Multi-stage build keeps the runtime image small
188
188
  # (no dev dependencies, no TypeScript sources).
189
+ #
190
+ # The \`npm install -g npm@11.12.1\` line before each \`npm ci\` is deliberate: the
191
+ # npm bundled in node:20-slim errors on a non-matching OPTIONAL platform dep
192
+ # (e.g. @esbuild/aix-ppc64, pulled in transitively by the vitest/tsx devDeps)
193
+ # with \`EBADPLATFORM\` instead of skipping it, which breaks the build on Cloud
194
+ # Build (linux/x64). Pinning a newer npm that correctly skips non-matching
195
+ # optional deps fixes it. Bump the pin when you next refresh the toolchain.
189
196
 
190
197
  FROM node:20-slim AS build
191
198
  WORKDIR /app
199
+ RUN npm install -g npm@11.12.1
192
200
  COPY package*.json ./
193
201
  RUN npm ci
194
202
  COPY tsconfig.json ./
@@ -198,6 +206,7 @@ RUN npm run build
198
206
  FROM node:20-slim AS runtime
199
207
  WORKDIR /app
200
208
  ENV NODE_ENV=production
209
+ RUN npm install -g npm@11.12.1
201
210
  COPY package*.json ./
202
211
  RUN npm ci --omit=dev
203
212
  COPY --from=build /app/dist ./dist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.",
5
5
  "author": {
6
6
  "name": "Dr. Kerry Kriger",