Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/contentstack-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bootstrap",
"description": "Bootstrap contentstack apps",
"version": "1.19.3",
"version": "1.19.4",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"scripts": {
Expand All @@ -16,7 +16,7 @@
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
},
"dependencies": {
"@contentstack/cli-cm-seed": "~1.15.3",
"@contentstack/cli-cm-seed": "~1.15.4",
"@contentstack/cli-command": "~1.8.2",
"@contentstack/cli-config": "~1.20.3",
"@contentstack/cli-utilities": "~1.18.3",
Expand Down Expand Up @@ -69,4 +69,4 @@
}
},
"repository": "contentstack/cli"
}
}
6 changes: 3 additions & 3 deletions packages/contentstack-clone/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@contentstack/cli-cm-clone",
"description": "Contentstack stack clone plugin",
"version": "1.21.4",
"version": "1.21.5",
"author": "Contentstack",
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
"dependencies": {
"@colors/colors": "^1.6.0",
"@contentstack/cli-cm-export": "~1.25.0",
"@contentstack/cli-cm-import": "~1.33.0",
"@contentstack/cli-cm-import": "~1.33.1",
"@contentstack/cli-command": "~1.8.2",
"@contentstack/cli-utilities": "~1.18.3",
"@oclif/core": "^4.10.5",
Expand Down Expand Up @@ -81,4 +81,4 @@
"cm:stack-clone": "O-CLN"
}
}
}
}
4 changes: 2 additions & 2 deletions packages/contentstack-import/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-import",
"description": "Contentstack CLI plugin to import content into stack",
"version": "1.33.0",
"version": "1.33.1",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down Expand Up @@ -89,4 +89,4 @@
}
},
"repository": "https://github.com/contentstack/cli"
}
}
6 changes: 6 additions & 0 deletions packages/contentstack-import/src/utils/asset-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ export const lookupAssets = function (
}

find(data.content_type.schema, data.entry);
// findFileUrls scans the whole entry object, but is only triggered inside find() when a
// text field has markdown/rich_text_type metadata. Content types with no such fields
// (e.g. those storing asset URLs in plain text fields) never call findFileUrls, so URLs
// in those fields are never collected. Calling it once unconditionally here ensures all
// asset URLs in the entry are always captured, regardless of schema shape.
findFileUrls({ field_metadata: {} }, data.entry, assetUrls);
updateFileFields(data.entry, data, null, mappedAssetUids, matchedUids, unmatchedUids, mappedAssetUrls);
assetUids = _.uniq(assetUids);
assetUrls = _.uniq(assetUrls);
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-query-export/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-export-query",
"description": "Contentstack CLI plugin to export content from stack",
"version": "1.0.1",
"version": "1.0.2",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down Expand Up @@ -99,4 +99,4 @@
}
},
"repository": "https://github.com/contentstack/cli"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class ModuleExporter {
if (options.alias) {
cmd.push('-a', options.alias);
} else if (this.exportQueryConfig.managementToken) {
cmd.push('-a', this.exportQueryConfig.managementToken);
cmd.push('-a', this.exportQueryConfig.alias);
}

// Branch
Expand Down
1 change: 1 addition & 0 deletions packages/contentstack-query-export/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export interface QueryExportConfig extends DefaultConfig {
batchDelayMs?: number;
assetBatchSize?: number;
assetBatchDelayMs?: number;
alias?: string;
context?: LogContext; // Log context for centralized logging
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export async function setupQueryExportConfig(flags: any): Promise<QueryExportCon
const { token, apiKey } = configHandler.get(`tokens.${flags.alias}`) || {};
exportQueryConfig.managementToken = token;
exportQueryConfig.stackApiKey = apiKey;
exportQueryConfig.alias = flags.alias;
if (!exportQueryConfig.managementToken) {
throw new Error(`No management token found for alias ${flags.alias}.`);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-seed/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@contentstack/cli-cm-seed",
"description": "create a Stack from existing content types, entries, assets, etc.",
"version": "1.15.3",
"version": "1.15.4",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-cm-import": "~1.33.0",
"@contentstack/cli-cm-import": "~1.33.1",
"@contentstack/cli-command": "~1.8.2",
"@contentstack/cli-utilities": "~1.18.3",
"inquirer": "8.2.7",
Expand Down Expand Up @@ -70,4 +70,4 @@
"compile": "tsc -b tsconfig.json",
"build": "pnpm compile && oclif manifest && oclif readme"
}
}
}
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading