Skip to content

Enable metadata-driven init defaults for workspace/module templates#385

Merged
pyramation merged 1 commit intomainfrom
boilerplates
Dec 11, 2025
Merged

Enable metadata-driven init defaults for workspace/module templates#385
pyramation merged 1 commit intomainfrom
boilerplates

Conversation

@sdqede
Copy link
Copy Markdown
Contributor

@sdqede sdqede commented Dec 11, 2025

  • Remove hardcoded templatePath defaults in init flows so .boilerplates.json drives resolution to default/workspace and default/module.
  • Stop test defaults from forcing template paths; rely on scaffoldTemplate metadata lookup (with legacy fallback).
  • Ensure init works on the restructuring branch without extra flags and snapshots reflect the new behavior.

⚠️ Coordinate Releases with pgpm-boilerplates Merge

  • Publish @launchql/cli and pgpm only after pgpm-boilerplates restructuring is merged to main.
  • Reason: lql init defaults to cloning main of pgpm-boilerplates; the new metadata layout (default/workspace, default/module, .boilerplates.json) must be present there to avoid init failures.
  • Action: Merge pgpm-boilerplates restructuring → then publish @launchql/cli + pgpm together.
npm view @launchql/cli version
node packages/cli/dist/index.js init -h
cat ~/.lql/config/_launchql_cli.json
rm -rf /tmp/lql-test
node packages/cli/dist/index.js init \
  --cwd /tmp/lql-test \
  --from-branch restructuring \
  workspace
node packages/cli/dist/index.js init \
  --cwd /tmp/lql-test/workspace \
  --from-branch restructuring
ls ~/.pgpm/cache/repos
node packages/cli/dist/index.js cache clean

…d default/module

- remove hardcoded templatePath defaults from init workspace/module commands so metadata resolution uses .boilerplates.json (dir: default)
- stop setting templatePath in init defaults; let scaffoldTemplate resolve default/workspace or default/module automatically
- rely on template-scaffold metadata resolution (base dir from .boilerplates.json with fallback to legacy paths)
- regenerate CLI snapshots to reflect absence of templatePath overrides
- allow init (workspace/module) to work on restructuring branch without --template-path flags
@sdqede sdqede self-assigned this Dec 11, 2025
@pyramation pyramation merged commit 2888996 into main Dec 11, 2025
29 checks passed
@pyramation pyramation deleted the boilerplates branch December 11, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants