CLI template issues: invalid engine constraints, missing CI workflow, and failing architecture checks#245
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
86c5723 to
ed7329a
Compare
105e922 to
05e1564
Compare
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@architecture/DECOMPOSITION.md`:
- Around line 602-627: Update the decomposition metadata to include the new
feature: increment the total features count on Line 25 from 11 to 12 and add
cpt-frontx-feature-cli-scaffolding-quality to the Section 3 dependency
list/graph so it appears as a dependent node (ensure it links to its declared
dependency cpt-frontx-feature-cli-tooling and is represented in any bullet lists
or graph markup used in Section 3). Ensure the feature ID
cpt-frontx-feature-cli-scaffolding-quality appears in the summary/dependency
graph and that any counts or indexes elsewhere that enumerate features are
adjusted accordingly.
In `@packages/cli/src/generators/project.ts`:
- Around line 414-416: The CI workflow file was added to ROOT_CONFIG_FILES but
transformPackageManagerText is changing "npm ci" into non-deterministic
installer commands (e.g., "pnpm install" / "yarn install"); add a CI-specific
transformation that returns the lockfile-enforcing equivalents (pnpm install
--frozen-lockfile, yarn install --immutable, keep npm ci) instead of the generic
transformPackageManagerText result, implement it as a new helper (e.g.,
transformPackageManagerTextForCI or packageManagerInstallCommandCI) and update
the codepath that processes '.github/workflows/ci.yml' so it calls this
CI-specific function rather than transformPackageManagerText.
In `@packages/cli/template-sources/project/scripts/test-architecture.ts`:
- Around line 119-124: The Node version gate in test-architecture.ts currently
checks nodeVersion >= 25 which skips the arch:deps check for projects using
.nvmrc 24.x; change the condition to nodeVersion >= 24 so the checks.push({
command: runScriptCommand(packageManager, 'arch:deps'), description: 'Dependency
rules' }) branch runs for Node 24, keeping the log(...) fallback only for older
Node versions; update the numeric comparison where nodeVersion is derived from
process.versions.node.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: a6655c37-f8de-441b-8a7a-87bd3dc80912
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (9)
architecture/DECOMPOSITION.mdarchitecture/features/feature-cli-scaffolding-quality/FEATURE.mdpackage.jsonpackages/cli/scripts/copy-templates.tspackages/cli/scripts/e2e-pr-smoke.mjspackages/cli/src/core/packageManager.tspackages/cli/src/generators/project.tspackages/cli/template-sources/project/configs/_github/workflows/ci.ymlpackages/cli/template-sources/project/scripts/test-architecture.ts
Review SummaryVerdict: REQUEST CHANGES — 4 blocking issues found. 1. Remove the new FEATURE document (architecture)This PR is bug fixes + a small template enhancement, not a new feature. The scope belongs in the existing 2.
|
47c2822 to
8b374e2
Compare
Re-review: ✅ APPROVEAll 4 previously raised blocking issues are resolved:
No new blocking issues found. CI template actions ( Recommended (non-blocking)
Full review: |
… and failing architecture checks Signed-off-by: Mitriyweb <mitriyweb@gmail.com>
8b374e2 to
8545c72
Compare
|



Summary by CodeRabbit
Release Notes
New Features
.nvmrcChores