feat(DX-7525): migrate contentstack-cli-content-type v1 into cli-plugins monorepo#169
Conversation
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
…-content-type-migration-v1
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
6744b75
into
feat/migrate-external-cli-plugins-v1
Summary
Migrates the
contentstack-cli-content-typestandalone plugin into thecli-pluginspnpm monorepo atpackages/contentstack-content-type, targeting the CLI v1 line (version1.5.0, npm taglatest).The npm package name is unchanged (
contentstack-cli-content-type). All 6 commands (content-type:list,details,audit,compare,compare-remote,diagram) and their flags are identical to the standalone version.What's included
New package —
packages/contentstack-content-type/src/commands/content-type/(6 commands),src/core/,src/utils/,src/types/,src/config/tests/— commands, core logic, HTTP client, utilsbin/run,bin/run.js,bin/run.cmd,bin/dev,bin/dev.js,bin/dev.cmdpackage.json(v1.5.0, v1 CLI deps, pnpm-aligned scripts, monorepo repo/homepage),tsconfig.json(composite),jest.config.js,.eslintrcAGENTS.md,README.md,SECURITY.md,LICENSE,screenshots/skills/(dev-workflow, testing, code-review, contentstack-cli-content-type) — all reference pnpm commands and the production release workflowMonorepo config changes
.github/workflows/release-production-plugins.ymlPublishing content-type (Production)step (tag: latest) between query-export and Create Production Release.github/workflows/unit-test.ymlRun tests for Contentstack Content Type pluginstep (npm run test:unit).github/config/release.json"content-type": falsealongside existing v1 plugin keys.cursor/rules/README.mdcontentstack-content-typeto the monorepo package listREADME.mdAGENTS.mdCONTENT-TYPE-MIGRATION.md1.5.0/latest) and v2 (2.0.0-beta.0/beta) version lines, install, local dev, archive instructionspnpm-lock.yaml.talismanrcpnpm-lock.yamlchecksumKey decisions
@contentstack/cli-command ^1.8.2and@contentstack/cli-utilities ^1.18.3match the standalone repo and the v1 line of every other plugin on this branch.1.5.0— minor bump from1.4.6to mark the first release from the monorepo; no breaking changes, all commands and flags unchanged.tag: latest— production release workflow, consistent with all other v1 plugins on this branch.npm run test:unitconsistent with monorepo convention.release-production-plugins.ymlnotrelease-v2-beta-plugins.yml— the v2 beta release workflow does not exist on this branch; the production workflow withtag: latestis the correct target for v1.Test plan
pnpm --filter contentstack-cli-content-type run buildcompletes without errorspnpm --filter contentstack-cli-content-type run test— all 16 test files passpnpm --filter contentstack-cli-content-type run test:coverage— 80 % global thresholds metpnpm --filter contentstack-cli-content-type run lint— ESLint cleanNODE_ENV=PREPACK_MODE npm run buildcsdx plugins:linkinsidepackages/contentstack-content-typethencsdx content-type:list -a <alias>returns content types