From d840c17df7c4fdf284b12e813385b920c5d250ce Mon Sep 17 00:00:00 2001 From: raj pandey Date: Tue, 30 Jun 2026 17:34:49 +0530 Subject: [PATCH 1/8] fix(flags): normalize short flag consistency across cli-cm-regex-validate, tsgen, migration, and apps-cli --- .../src/commands/app/install.ts | 1 + .../src/commands/app/reinstall.ts | 1 + .../src/commands/cm/stacks/validate-regex.ts | 13 +++++-------- .../src/commands/tsgen.ts | 15 ++++++--------- .../integration/tsgen.integration.test.ts | 18 +++++++++--------- .../src/commands/cm/stacks/migration.ts | 1 - 6 files changed, 22 insertions(+), 27 deletions(-) diff --git a/packages/contentstack-apps-cli/src/commands/app/install.ts b/packages/contentstack-apps-cli/src/commands/app/install.ts index 0f2db4a37..f79142b4f 100644 --- a/packages/contentstack-apps-cli/src/commands/app/install.ts +++ b/packages/contentstack-apps-cli/src/commands/app/install.ts @@ -26,6 +26,7 @@ export default class Install extends AppCLIBaseCommand { description: commonMsg.APP_UID, }), "stack-api-key": flags.string({ + char: "k", description: commonMsg.STACK_API_KEY, }), ...AppCLIBaseCommand.baseFlags, diff --git a/packages/contentstack-apps-cli/src/commands/app/reinstall.ts b/packages/contentstack-apps-cli/src/commands/app/reinstall.ts index 225e3edca..538f74d9f 100644 --- a/packages/contentstack-apps-cli/src/commands/app/reinstall.ts +++ b/packages/contentstack-apps-cli/src/commands/app/reinstall.ts @@ -25,6 +25,7 @@ export default class Reinstall extends AppCLIBaseCommand { description: commonMsg.APP_UID, }), "stack-api-key": flags.string({ + char: "k", description: commonMsg.STACK_API_KEY, }), ...AppCLIBaseCommand.baseFlags, diff --git a/packages/contentstack-cli-cm-regex-validate/src/commands/cm/stacks/validate-regex.ts b/packages/contentstack-cli-cm-regex-validate/src/commands/cm/stacks/validate-regex.ts index 3aef395bb..aa84aa984 100644 --- a/packages/contentstack-cli-cm-regex-validate/src/commands/cm/stacks/validate-regex.ts +++ b/packages/contentstack-cli-cm-regex-validate/src/commands/cm/stacks/validate-regex.ts @@ -10,11 +10,11 @@ export default class ValidateRegex extends Command { static examples = [ '$ csdx cm:stacks:validate-regex', '$ csdx cm:stacks:validate-regex -a ', - '$ csdx cm:stacks:validate-regex -c', - '$ csdx cm:stacks:validate-regex -g', - '$ csdx cm:stacks:validate-regex -f ', - '$ csdx cm:stacks:validate-regex -a -c -g', - '$ csdx cm:stacks:validate-regex -a -c -g -f ', + '$ csdx cm:stacks:validate-regex --contentType', + '$ csdx cm:stacks:validate-regex --globalField', + '$ csdx cm:stacks:validate-regex --filePath ', + '$ csdx cm:stacks:validate-regex -a --contentType --globalField', + '$ csdx cm:stacks:validate-regex -a --contentType --globalField --filePath ', ] static flags: any = { alias: flags.string({ @@ -22,15 +22,12 @@ export default class ValidateRegex extends Command { description: regexMessages.command.alias, }), contentType: flags.boolean({ - char: 'c', description: regexMessages.command.contentTypes, }), filePath: flags.string({ - char: 'f', description: regexMessages.command.filePath, }), globalField: flags.boolean({ - char: 'g', description: regexMessages.command.globalFields, }), } diff --git a/packages/contentstack-cli-tsgen/src/commands/tsgen.ts b/packages/contentstack-cli-tsgen/src/commands/tsgen.ts index fc14f9016..210d16e6f 100644 --- a/packages/contentstack-cli-tsgen/src/commands/tsgen.ts +++ b/packages/contentstack-cli-tsgen/src/commands/tsgen.ts @@ -23,12 +23,12 @@ export default class TypeScriptCodeGeneratorCommand extends Command { static description = "Generate TypeScript typings from a Stack"; static examples = [ - '$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts"', - '$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" -p "I"', - '$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --no-doc', - '$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --include-referenced-entry', - '$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --api-type graphql', - '$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --api-type graphql --namespace "GraphQL" ', + '$ csdx tsgen -a "delivery token alias" --output "contentstack/generated.d.ts"', + '$ csdx tsgen -a "delivery token alias" --output "contentstack/generated.d.ts" --prefix "I"', + '$ csdx tsgen -a "delivery token alias" --output "contentstack/generated.d.ts" --no-doc', + '$ csdx tsgen -a "delivery token alias" --output "contentstack/generated.d.ts" --include-referenced-entry', + '$ csdx tsgen -a "delivery token alias" --output "contentstack/generated.d.ts" --api-type graphql', + '$ csdx tsgen -a "delivery token alias" --output "contentstack/generated.d.ts" --api-type graphql --namespace "GraphQL" ', ]; // Check if a region is a default Contentstack region @@ -55,7 +55,6 @@ export default class TypeScriptCodeGeneratorCommand extends Command { }), output: flags.string({ - char: "o", description: "full path to output", hidden: false, multiple: false, @@ -63,7 +62,6 @@ export default class TypeScriptCodeGeneratorCommand extends Command { }), prefix: flags.string({ - char: "p", description: 'interface prefix, e.g. "I"', hidden: false, multiple: false, @@ -72,7 +70,6 @@ export default class TypeScriptCodeGeneratorCommand extends Command { }), doc: flags.boolean({ - char: "d", description: "include documentation comments", default: true, allowNo: true, diff --git a/packages/contentstack-cli-tsgen/tests/integration/tsgen.integration.test.ts b/packages/contentstack-cli-tsgen/tests/integration/tsgen.integration.test.ts index f3860ff57..d6de5790d 100644 --- a/packages/contentstack-cli-tsgen/tests/integration/tsgen.integration.test.ts +++ b/packages/contentstack-cli-tsgen/tests/integration/tsgen.integration.test.ts @@ -24,7 +24,7 @@ describe("Integration Test for tsgen command", () => { // Test case 1: Generate TypeScript types with default flags it("should generate TypeScript types with the default flags", () => { const cmd = "csdx"; - const args = ["tsgen", "-a", tokenAlias!, "-o", outputFilePath]; + const args = ["tsgen", "-a", tokenAlias!, "--output", outputFilePath]; const result = spawnSync(cmd, args, { encoding: "utf-8" }); @@ -44,9 +44,9 @@ describe("Integration Test for tsgen command", () => { "tsgen", "-a", tokenAlias!, - "-o", + "--output", outputFilePath, - "-p", + "--prefix", prefix, ]; @@ -72,7 +72,7 @@ describe("Integration Test for tsgen command", () => { // Test case 3: Generate TypeScript types without documentation comments it("should generate TypeScript types without documentation", () => { const cmd = "csdx"; - const args = ["tsgen", "-a", tokenAlias!, "-o", outputFilePath, "--no-doc"]; + const args = ["tsgen", "-a", tokenAlias!, "--output", outputFilePath, "--no-doc"]; const result = spawnSync(cmd, args, { encoding: "utf-8" }); @@ -90,7 +90,7 @@ describe("Integration Test for tsgen command", () => { "tsgen", "-a", tokenAlias!, - "-o", + "--output", outputFilePath, "--include-system-fields", ]; @@ -108,7 +108,7 @@ describe("Integration Test for tsgen command", () => { // Test case 5: Handling of invalid token alias it("should fail with an invalid token alias", () => { const cmd = "csdx"; - const args = ["tsgen", "-a", "invalid_alias", "-o", outputFilePath]; + const args = ["tsgen", "-a", "invalid_alias", "--output", outputFilePath]; const result = spawnSync(cmd, args, { encoding: "utf-8" }); @@ -124,7 +124,7 @@ describe("Integration Test for tsgen command", () => { "tsgen", "-a", tokenAlias!, - "-o", + "--output", outputFilePath, "--api-type", "graphql", @@ -147,7 +147,7 @@ describe("Integration Test for tsgen command", () => { "tsgen", "-a", tokenAlias!, - "-o", + "--output", outputFilePath, "--api-type", "graphql", @@ -171,7 +171,7 @@ describe("Integration Test for tsgen command", () => { "tsgen", "-a", "invalid_alias", - "-o", + "--output", outputFilePath, "--api-type", "graphql", diff --git a/packages/contentstack-migration/src/commands/cm/stacks/migration.ts b/packages/contentstack-migration/src/commands/cm/stacks/migration.ts index 4fc667a12..12a29e368 100644 --- a/packages/contentstack-migration/src/commands/cm/stacks/migration.ts +++ b/packages/contentstack-migration/src/commands/cm/stacks/migration.ts @@ -82,7 +82,6 @@ export default class MigrationCommand extends Command { // To be deprecated 'api-key': flags.string({ - char: 'k', description: 'With this flag add the API key of your stack.', // dependsOn: ['authtoken'], exclusive: ['alias'], From 1fcb26582160d13aae3a1214f04ca024821f4d5b Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 12:25:00 +0530 Subject: [PATCH 2/8] updated short flags of external commands --- packages/contentstack-apps-cli/src/commands/app/create.ts | 1 - packages/contentstack-cli-tsgen/src/commands/tsgen.ts | 4 ++-- .../src/commands/migrate/convert.ts | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/contentstack-apps-cli/src/commands/app/create.ts b/packages/contentstack-apps-cli/src/commands/app/create.ts index 7e696aa27..dbb5241f0 100644 --- a/packages/contentstack-apps-cli/src/commands/app/create.ts +++ b/packages/contentstack-apps-cli/src/commands/app/create.ts @@ -62,7 +62,6 @@ export default class Create extends BaseCommand { static flags: FlagInput = { name: flags.string({ - char: "n", description: appCreate.NAME_DESCRIPTION, }), "app-type": flags.string({ diff --git a/packages/contentstack-cli-tsgen/src/commands/tsgen.ts b/packages/contentstack-cli-tsgen/src/commands/tsgen.ts index 210d16e6f..d6ab5251c 100644 --- a/packages/contentstack-cli-tsgen/src/commands/tsgen.ts +++ b/packages/contentstack-cli-tsgen/src/commands/tsgen.ts @@ -46,7 +46,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command { } static flags: FlagInput = { - "token-alias": flags.string({ + alias: flags.string({ char: "a", description: "delivery token alias", hidden: false, @@ -115,7 +115,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command { try { const { flags } = await this.parse(TypeScriptCodeGeneratorCommand); - const token = this.getToken(flags["token-alias"]); + const token = this.getToken(flags["alias"]); const prefix = flags.prefix; const includeDocumentation = flags.doc; const filePath = flags.output; diff --git a/packages/contentstack-external-migrate/src/commands/migrate/convert.ts b/packages/contentstack-external-migrate/src/commands/migrate/convert.ts index c39f9fbd3..82b286369 100644 --- a/packages/contentstack-external-migrate/src/commands/migrate/convert.ts +++ b/packages/contentstack-external-migrate/src/commands/migrate/convert.ts @@ -32,7 +32,6 @@ export default class MigrateConvert extends Command { description: 'Destination master locale code', }), affix: flags.string({ - char: 'a', description: 'Content-type UID prefix', default: '', }), From ebefac58bbd01e00436d04f1245b251ecc5337f1 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 16:46:25 +0530 Subject: [PATCH 3/8] updated unit test workflow --- .github/workflows/unit-test.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index c629b7b41..ab7213ec1 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -55,9 +55,9 @@ jobs: working-directory: ./packages/contentstack-bootstrap run: npm run test - # - name: Run tests for Contentstack Import Setup - # working-directory: ./packages/contentstack-import-setup - # run: npm run test:unit + - name: Run tests for Contentstack Import Setup + working-directory: ./packages/contentstack-import-setup + run: npm run test:unit - name: Run tests for Contentstack Branches working-directory: ./packages/contentstack-branches @@ -86,7 +86,23 @@ jobs: - name: Run tests for Contentstack Bulk Operations working-directory: ./packages/contentstack-bulk-operations run: npm test - + - name: Run tests for Contentstack Variants working-directory: ./packages/contentstack-variants run: npm run test + + - name: Run tests for Contentstack Asset Management + working-directory: ./packages/contentstack-asset-management + run: npm run test:unit + + - name: Run tests for Contentstack Clone + working-directory: ./packages/contentstack-clone + run: npm run test:unit + + - name: Run tests for Contentstack External Migrate + working-directory: ./packages/contentstack-external-migrate + run: npm test + + - name: Run tests for Contentstack Seed + working-directory: ./packages/contentstack-seed + run: npm test From 956306e682b94787d147d62a55d6270f899b577d Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 16:52:19 +0530 Subject: [PATCH 4/8] updated unit test workflow --- .github/workflows/unit-test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index ab7213ec1..8f3498872 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -55,10 +55,6 @@ jobs: working-directory: ./packages/contentstack-bootstrap run: npm run test - - name: Run tests for Contentstack Import Setup - working-directory: ./packages/contentstack-import-setup - run: npm run test:unit - - name: Run tests for Contentstack Branches working-directory: ./packages/contentstack-branches run: npm run test:unit From 2136d2803054dad459f367cf5e7fc9fea15f60ed Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 17:01:03 +0530 Subject: [PATCH 5/8] updated unit test workflow and added parallel execution --- .github/workflows/unit-test-parallel.yml | 103 +++++++++++++++++++++++ .github/workflows/unit-test.yml | 6 +- 2 files changed, 106 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/unit-test-parallel.yml diff --git a/.github/workflows/unit-test-parallel.yml b/.github/workflows/unit-test-parallel.yml new file mode 100644 index 000000000..cfbdb99b4 --- /dev/null +++ b/.github/workflows/unit-test-parallel.yml @@ -0,0 +1,103 @@ +name: Run Unit Tests (Parallel) + +on: + pull_request: + types: [opened, synchronize, reopened] + workflow_dispatch: + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.28.0 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'pnpm' + + - name: Prune pnpm store + run: pnpm store prune + + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + + - name: Build all plugins + run: NODE_ENV=PREPACK_MODE pnpm -r --sort run build + + - name: Upload workspace + uses: actions/upload-artifact@v4 + with: + name: built-workspace-${{ github.sha }} + path: . + retention-days: 1 + compression-level: 6 + + test: + needs: setup + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - package: contentstack-import + cmd: npm run test:unit + - package: contentstack-export + cmd: npm run test:unit + - package: contentstack-audit + cmd: npm run test:unit + - package: contentstack-migration + cmd: npm run test + - package: contentstack-export-to-csv + cmd: npm run test:unit + - package: contentstack-bootstrap + cmd: npm run test + - package: contentstack-import-setup + cmd: npm run test:unit + - package: contentstack-branches + cmd: npm run test:unit + - package: contentstack-query-export + cmd: npm run test:unit + - package: contentstack-apps-cli + cmd: npm run test:unit:report + - package: contentstack-content-type + cmd: npm run test:unit + - package: contentstack-cli-cm-regex-validate + cmd: npm run test:unit + - package: contentstack-migrate-rte + cmd: npm test + - package: contentstack-bulk-operations + cmd: npm test + - package: contentstack-variants + cmd: npm run test + - package: contentstack-asset-management + cmd: npm run test:unit + - package: contentstack-clone + cmd: npm run test:unit + # - package: contentstack-external-migrate # DX-9432: ESLint errors blocking CI — assigned to Netraj + # cmd: npm test + - package: contentstack-seed + cmd: npm test + + steps: + - name: Download workspace + uses: actions/download-artifact@v4 + with: + name: built-workspace-${{ github.sha }} + path: . + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + + - name: Run tests — ${{ matrix.package }} + working-directory: ./packages/${{ matrix.package }} + run: ${{ matrix.cmd }} diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 8f3498872..5f548506d 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -95,9 +95,9 @@ jobs: working-directory: ./packages/contentstack-clone run: npm run test:unit - - name: Run tests for Contentstack External Migrate - working-directory: ./packages/contentstack-external-migrate - run: npm test + # - name: Run tests for Contentstack External Migrate + # working-directory: ./packages/contentstack-external-migrate + # run: npm test - name: Run tests for Contentstack Seed working-directory: ./packages/contentstack-seed From c03672c48a14c078172d36696e3bd7476bc65764 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 17:11:33 +0530 Subject: [PATCH 6/8] fixed test case and removed parallel test execution --- .github/workflows/unit-test-parallel.yml | 103 ---------------------- packages/contentstack-seed/jest.config.js | 1 + 2 files changed, 1 insertion(+), 103 deletions(-) delete mode 100644 .github/workflows/unit-test-parallel.yml diff --git a/.github/workflows/unit-test-parallel.yml b/.github/workflows/unit-test-parallel.yml deleted file mode 100644 index cfbdb99b4..000000000 --- a/.github/workflows/unit-test-parallel.yml +++ /dev/null @@ -1,103 +0,0 @@ -name: Run Unit Tests (Parallel) - -on: - pull_request: - types: [opened, synchronize, reopened] - workflow_dispatch: - -jobs: - setup: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 10.28.0 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '22.x' - cache: 'pnpm' - - - name: Prune pnpm store - run: pnpm store prune - - - name: Install dependencies - run: pnpm install --no-frozen-lockfile - - - name: Build all plugins - run: NODE_ENV=PREPACK_MODE pnpm -r --sort run build - - - name: Upload workspace - uses: actions/upload-artifact@v4 - with: - name: built-workspace-${{ github.sha }} - path: . - retention-days: 1 - compression-level: 6 - - test: - needs: setup - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - package: contentstack-import - cmd: npm run test:unit - - package: contentstack-export - cmd: npm run test:unit - - package: contentstack-audit - cmd: npm run test:unit - - package: contentstack-migration - cmd: npm run test - - package: contentstack-export-to-csv - cmd: npm run test:unit - - package: contentstack-bootstrap - cmd: npm run test - - package: contentstack-import-setup - cmd: npm run test:unit - - package: contentstack-branches - cmd: npm run test:unit - - package: contentstack-query-export - cmd: npm run test:unit - - package: contentstack-apps-cli - cmd: npm run test:unit:report - - package: contentstack-content-type - cmd: npm run test:unit - - package: contentstack-cli-cm-regex-validate - cmd: npm run test:unit - - package: contentstack-migrate-rte - cmd: npm test - - package: contentstack-bulk-operations - cmd: npm test - - package: contentstack-variants - cmd: npm run test - - package: contentstack-asset-management - cmd: npm run test:unit - - package: contentstack-clone - cmd: npm run test:unit - # - package: contentstack-external-migrate # DX-9432: ESLint errors blocking CI — assigned to Netraj - # cmd: npm test - - package: contentstack-seed - cmd: npm test - - steps: - - name: Download workspace - uses: actions/download-artifact@v4 - with: - name: built-workspace-${{ github.sha }} - path: . - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '22.x' - - - name: Run tests — ${{ matrix.package }} - working-directory: ./packages/${{ matrix.package }} - run: ${{ matrix.cmd }} diff --git a/packages/contentstack-seed/jest.config.js b/packages/contentstack-seed/jest.config.js index ae1f47236..caee69159 100644 --- a/packages/contentstack-seed/jest.config.js +++ b/packages/contentstack-seed/jest.config.js @@ -16,4 +16,5 @@ module.exports = { '^@/(.*)$': '/src/$1', }, testPathIgnorePatterns: ['/node_modules/', '/old_tests/'], + transformIgnorePatterns: ['/node_modules/(?!(uuid)/)'], }; \ No newline at end of file From 000ca7520646374b6c31c5463e6cefd60ae9894b Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 17:22:33 +0530 Subject: [PATCH 7/8] fixed seed tests --- packages/contentstack-seed/jest.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/contentstack-seed/jest.config.js b/packages/contentstack-seed/jest.config.js index caee69159..980ea7ff8 100644 --- a/packages/contentstack-seed/jest.config.js +++ b/packages/contentstack-seed/jest.config.js @@ -5,6 +5,10 @@ module.exports = { '^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], + '(node_modules/.pnpm/uuid@[^/]+/node_modules/uuid|node_modules/uuid)/.+\\.js$': [ + 'babel-jest', + { presets: [['@babel/preset-env', { modules: 'commonjs' }]] }, + ], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], testEnvironment: 'node', @@ -16,5 +20,5 @@ module.exports = { '^@/(.*)$': '/src/$1', }, testPathIgnorePatterns: ['/node_modules/', '/old_tests/'], - transformIgnorePatterns: ['/node_modules/(?!(uuid)/)'], + transformIgnorePatterns: ['/node_modules/(?!(.pnpm/uuid@[^/]+/node_modules/)?uuid/)'], }; \ No newline at end of file From c57bef9917df542c504f99a429df019efc6e556c Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 17:36:42 +0530 Subject: [PATCH 8/8] Removed character flag from the command and removed seed test from workflow --- .github/workflows/unit-test.yml | 3 --- .../src/commands/migrate/convert.ts | 4 +--- .../src/commands/migrate/export.ts | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 5f548506d..1e07a0895 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -99,6 +99,3 @@ jobs: # working-directory: ./packages/contentstack-external-migrate # run: npm test - - name: Run tests for Contentstack Seed - working-directory: ./packages/contentstack-seed - run: npm test diff --git a/packages/contentstack-external-migrate/src/commands/migrate/convert.ts b/packages/contentstack-external-migrate/src/commands/migrate/convert.ts index 82b286369..593cc19e7 100644 --- a/packages/contentstack-external-migrate/src/commands/migrate/convert.ts +++ b/packages/contentstack-external-migrate/src/commands/migrate/convert.ts @@ -8,7 +8,7 @@ export default class MigrateConvert extends Command { static examples = [ '$ csdx migrate:convert --legacy contentful --input ./export.json --output ./contentstack-import', - '$ csdx migrate:convert -l contentful -i ../references/contentful-export-*.json -o ./contentstack-import -m en-US', + '$ csdx migrate:convert -l contentful -i ../references/contentful-export-*.json --output ./contentstack-import --master-locale en-US', ]; static hidden = true; static flags: FlagInput = { @@ -23,12 +23,10 @@ export default class MigrateConvert extends Command { description: 'Path to legacy export JSON (e.g. Contentful export)', }), output: flags.string({ - char: 'o', description: 'Parent output directory; bundle written to /bundle', default: './contentstack-import', }), 'master-locale': flags.string({ - char: 'm', description: 'Destination master locale code', }), affix: flags.string({ diff --git a/packages/contentstack-external-migrate/src/commands/migrate/export.ts b/packages/contentstack-external-migrate/src/commands/migrate/export.ts index 658fddf46..3300903c1 100644 --- a/packages/contentstack-external-migrate/src/commands/migrate/export.ts +++ b/packages/contentstack-external-migrate/src/commands/migrate/export.ts @@ -26,7 +26,6 @@ export default class MigrateExport extends Command { description: 'Contentful CMA token (prefer CONTENTFUL_MANAGEMENT_TOKEN env)', }), output: flags.string({ - char: 'o', description: 'Migration workspace root (writes export.json here)', default: './migration-workspace', }),