Skip to content

Commit 1e6f6cd

Browse files
committed
fixed build script query export
1 parent 04579ff commit 1e6f6cd

3 files changed

Lines changed: 25 additions & 24 deletions

File tree

packages/contentstack-export/src/commands/cm/stacks/export.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
getSessionLogPath,
1515
CLIProgressManager,
1616
clearProgressModuleSetting,
17+
loadChalk,
1718
} from '@contentstack/cli-utilities';
1819

1920
import { ModuleExporter } from '../../../export';
@@ -87,6 +88,7 @@ export default class ExportCommand extends Command {
8788
};
8889

8990
async run(): Promise<void> {
91+
await loadChalk();
9092
let exportDir: string = pathValidator('logs');
9193
try {
9294
const { flags } = await this.parse(ExportCommand);
@@ -103,9 +105,7 @@ export default class ExportCommand extends Command {
103105
const moduleExporter = new ModuleExporter(managementAPIClient, exportConfig);
104106
await moduleExporter.start();
105107
const sessionLogPath = getSessionLogPath();
106-
log.success(
107-
`The content of the stack ${exportConfig.apiKey} has been exported successfully!`,
108-
);
108+
log.success(`The content of the stack ${exportConfig.apiKey} has been exported successfully!`);
109109
log.info(`The exported content has been stored at '${exportDir}'`, exportConfig.context);
110110
log.success(`The log has been stored at '${sessionLogPath}'`, exportConfig.context);
111111

packages/contentstack-query-export/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
8-
"@contentstack/cli-cm-export": "~2.0.0-beta.14",
9-
"@contentstack/cli-command": "~2.0.0-beta.5",
8+
"@contentstack/cli-cm-export": "~2.0.0-beta.16",
9+
"@contentstack/cli-command": "~2.0.0-beta.6",
1010
"@contentstack/cli-utilities": "~2.0.0-beta.7",
1111
"@oclif/core": "^4.10.5",
1212
"async": "^3.2.6",
@@ -48,11 +48,12 @@
4848
"typescript": "^4.9.5"
4949
},
5050
"scripts": {
51-
"build": "pnpm compile && oclif manifest && oclif readme",
51+
"build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
5252
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
5353
"compile": "tsc -b tsconfig.json",
5454
"postpack": "rm -f oclif.manifest.json",
55-
"prepack": "pnpm compile && oclif manifest && oclif readme",
55+
"copy-config": "cp -r src/config lib/",
56+
"prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme",
5657
"version": "oclif readme && git add README.md",
5758
"test:report": "tsc -p test && nyc --reporter=lcov --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
5859
"pretest": "tsc -p test",

pnpm-lock.yaml

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)