You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrates the contentstack-cli-content-type standalone plugin into the cli-plugins pnpm monorepo at packages/contentstack-content-type. This is the v2-beta line of the plugin (version 2.0.0-beta.0), following the same pattern established by apps-cli and tsgen migrations.
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.
4 skill files under skills/ (dev-workflow, testing, code-review, contentstack-cli-content-type) — all updated to use pnpm commands and reference monorepo CI
Monorepo config changes
File
Change
.github/workflows/unit-test.yml
Added Run tests for Contentstack Content Type plugin step (npm run test:unit)
.github/workflows/release-v2-beta-plugins.yml
Added Publishing content-type (Beta) step between query-export and apps-cli
.github/config/release.json
Added "content-type": false to plugins object
pnpm-workspace.yaml
Bumped tmp: 0.2.4 → 0.2.5 to align with package requirement
pnpm-lock.yaml
Updated after pnpm install with new package dependencies
.talismanrc
Updated pnpm-lock.yaml checksum
README.md
Added content-type to Useful Plugins section
AGENTS.md
Added Content Type plugin section with v1/v2 branch guidance, Jest note, migration doc link
CONTENT-TYPE-MIGRATION.md
New migration guide at monorepo root (repo/issue tracking change, version lines, install, local dev, archive instructions)
Key decisions
Jest retained — the source plugin uses Jest + ts-jest with 80% global coverage thresholds. Unlike most other packages in this monorepo (Mocha + Chai), Jest is kept to avoid rewriting 16 test files. The CI step uses npm run test:unit consistent with monorepo convention.
Version 2.0.0-beta.0 — marks the first release from the monorepo on the v2-beta line; v1.x releases continue from v1-dev / main.
Test plan
pnpm --filter contentstack-cli-content-type run build completes without errors
pnpm --filter contentstack-cli-content-type run test — all 16 test files pass
pnpm --filter contentstack-cli-content-type run test:coverage — 80% global thresholds met
pnpm --filter contentstack-cli-content-type run lint — ESLint clean
NODE_ENV=PREPACK_MODE pnpm -r --sort run build (full monorepo build) passes
csdx plugins:link inside packages/contentstack-content-type then csdx content-type:list -a <alias> returns content types
Existing packages unaffected — no regressions in monorepo unit-test workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates the
contentstack-cli-content-typestandalone plugin into thecli-pluginspnpm monorepo atpackages/contentstack-content-type. This is the v2-beta line of the plugin (version2.0.0-beta.0), following the same pattern established byapps-cliandtsgenmigrations.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(v2.0.0-beta.0, 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 updated to use pnpm commands and reference monorepo CIMonorepo config changes
.github/workflows/unit-test.ymlRun tests for Contentstack Content Type pluginstep (npm run test:unit).github/workflows/release-v2-beta-plugins.ymlPublishing content-type (Beta)step between query-export and apps-cli.github/config/release.json"content-type": falseto plugins objectpnpm-workspace.yamltmp: 0.2.4 → 0.2.5to align with package requirementpnpm-lock.yamlpnpm installwith new package dependencies.talismanrcpnpm-lock.yamlchecksumREADME.mdAGENTS.mdCONTENT-TYPE-MIGRATION.mdKey decisions
npm run test:unitconsistent with monorepo convention.2.0.0-beta.0— marks the first release from the monorepo on the v2-beta line; v1.x releases continue fromv1-dev/main.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 pnpm -r --sort run build(full monorepo build) passescsdx plugins:linkinsidepackages/contentstack-content-typethencsdx content-type:list -a <alias>returns content types