Skip to content

feat: migrate @contentstack/cli-cm-regex-validate to cli-plugins monorepo (v2-beta)#171

Merged
cs-raj merged 4 commits into
feat/migrate-external-cli-plugins-v2from
enhc/DX-7530-migrate-cli-regex-v2
May 25, 2026
Merged

feat: migrate @contentstack/cli-cm-regex-validate to cli-plugins monorepo (v2-beta)#171
cs-raj merged 4 commits into
feat/migrate-external-cli-plugins-v2from
enhc/DX-7530-migrate-cli-regex-v2

Conversation

@cs-raj
Copy link
Copy Markdown
Contributor

@cs-raj cs-raj commented May 25, 2026

Summary

Migrates @contentstack/cli-cm-regex-validate from its standalone GitHub repository into the cli-plugins pnpm monorepo as packages/contentstack-cli-cm-regex-validate, targeting the v2-beta CLI dependency line.

⚠️ First npm release — this package has never been published to npm. Version 2.0.0-beta.0 is set intentionally as the initial beta release.

What's included

  • Package source — full migration of src/, test/, bin/, messages/, config files
  • package.json — version 2.0.0-beta.0, v2 deps (@contentstack/cli-command ~2.0.0-beta.7, @contentstack/cli-utilities ~2.0.0-beta.8), oclif upgraded ^3.17.2 → ^4.23.0, jest moved from dependencies → devDependencies, monorepo repository/homepage/bugs, scripts: build, test:unit, lint, clean, prepack: pnpm run build
  • tsconfig.json — added composite: true, esModuleInterop: true
  • jest.config.ts — fixed testMatch to include test/ directory (source had tests/ only, breaking test discovery)
  • Release workflow — added publish step to release-v2-beta-plugins.yml with tag: beta
  • CI — added test step to unit-test.yml
  • release.json — added "regex-validate": false
  • DocsREGEX-VALIDATE-MIGRATION.md at monorepo root, root AGENTS.md updated with Regex Validate section
  • .talismanrc — checksums added for all flagged files

Package details

Field Value
npm name @contentstack/cli-cm-regex-validate
Command csdx cm:stacks:validate-regex
Short name RGXVLD
Version 2.0.0-beta.0
cli-command ~2.0.0-beta.7
cli-utilities ~2.0.0-beta.8
npm tag beta
Test framework Jest + ts-jest (kept from source)

Testing

# From monorepo root
pnpm --filter contentstack-cli-cm-regex-validate run test:unit

# Or from package directory
cd packages/contentstack-cli-cm-regex-validate
npm run test:unit

…repo (v2-beta)

Migrates the cli-cm-regex-validate plugin from its standalone repo into the
cli-plugins pnpm monorepo targeting v2 beta CLI dependencies. This is the
first npm publication of this package under the @contentstack scope.

- Add packages/contentstack-cli-cm-regex-validate with full source
- Set version to 2.0.0-beta.0 (first release), @contentstack/cli-command ~2.0.0-beta.7
  and @contentstack/cli-utilities ~2.0.0-beta.8
- Upgrade oclif from ^3.17.2 to ^4.23.0
- Move jest from dependencies to devDependencies
- Fix jest.config.ts testMatch to cover test/ directory (not just tests/)
- Add composite: true and esModuleInterop: true to tsconfig.json
- Wire into release-v2-beta-plugins.yml (tag: beta)
- Wire into unit-test.yml
- Update .github/config/release.json with regex-validate: false
- Update README.md, AGENTS.md, and add REGEX-VALIDATE-MIGRATION.md
- Update .talismanrc with checksums for new files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

With esModuleInterop: true, CJS default-export modules must be imported
with import X from 'X' not import * as X from 'X'. The latter produces
a namespace object that is neither callable (jsonexport) nor constructable
(cli-table3), causing TS2349/TS2351 build errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@cs-raj cs-raj marked this pull request as ready for review May 25, 2026 09:21
@cs-raj cs-raj requested a review from a team as a code owner May 25, 2026 09:21
@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 1 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ 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:

  • Critical without fixes: 0
  • High without fixes: 1
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@cs-raj cs-raj merged commit 90c1ff4 into feat/migrate-external-cli-plugins-v2 May 25, 2026
6 of 7 checks passed
@cs-raj cs-raj deleted the enhc/DX-7530-migrate-cli-regex-v2 branch May 25, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants