| name | typescript-cli-tsgen |
|---|---|
| description | Mental model for the contentstack-cli-tsgen OCLIF plugin and tsgen command. |
- Plugin for
csdx: implementsTypeScriptCodeGeneratorCommandinsrc/commands/tsgen.ts. - Generation is delegated to
@contentstack/types-generator(npm, GitHub)—version ^3.9.3 in package.json. Do not assume a local clone; use npm and published source only.
| Concern | Where |
|---|---|
New flags, output path, csdx UX, printFormattedError |
This repo (src/commands/, src/lib/) |
| Schema mapping, Delivery SDK calls, GraphQL introspection | @contentstack/types-generator |
src/lib/helper.ts:sanitizePath,printFormattedError(FormattedError,error_codeswitch).src/types/index.ts:StackConnectionConfigand related CLI types.
- Commands compile to
lib/commands;prepackrefreshesoclif.manifest.jsonand README.