| name | code-review |
|---|---|
| description | PR review checklist for contentstack-cli-tsgen (CLI, errors, Delivery/GraphQL, types-generator dependency). |
Aligned with .cursor/rules/code-review.mdc.
- Help text,
static examples, and README/oclif-generated docs stay in sync when flags or behavior change. - Short command name
tsgen/TSGENcomes fromcsdxConfigin package.json.
- Prefer Delivery token flows; GraphQL requires delivery token in code paths—reviewers should catch CMA-centric wording that misleads users.
printFormattedErrorinsrc/lib/helper.tsmapserror_codeto user-facing messages; extend switches carefully for backward compatibility.
- Business logic for
generateTS/graphqlTSbelongs in@contentstack/types-generator(npm, GitHub). CLI changes should orchestrate and format, not reimplement generation.
- Integration tests depend on
csdxandTOKEN_ALIAS; document env needs when adding cases.
- Blocker: Wrong token type handling, broken
csdxcontract, security issues. - Major: Missing integration coverage for new flags, unclear errors.
- Minor: Copy, non-breaking refactors.