Skip to content

Commit 8a8d79d

Browse files
Merge pull request #2421 from contentstack/fix/DX-4416
fix: log mode consistency
2 parents fbdf372 + 97bb819 commit 8a8d79d

File tree

24 files changed

+5582
-3936
lines changed

24 files changed

+5582
-3936
lines changed

.talismanrc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
fileignoreconfig:
2-
- filename: pnpm-lock.yaml
3-
checksum: 2845e79bd5176da75694132383ef026ab8f1a7dc31a1e0472c3950f7d2df0a2b
42
- filename: package-lock.json
5-
checksum: a227bddb54a87ad21f9d1400fb4f9f2b98a87153d8263200dd3ce3de9b29b9d9
6-
- filename: packages/contentstack-audit/src/modules/entries.ts
7-
checksum: 8ad10d72522433bc5ce66079248aa2dabae1758ee63335024efd8526d76dd885
8-
- filename: packages/contentstack-config/src/utils/region-handler.ts
9-
checksum: 7fb77272b01e48e0cde7a0b25d18a6a237bd59a8e2156aed8a8de5acd27f2465
3+
checksum: 45100667793fc7dfaae3e24787871257e7f29e06df69ba10ec05b358d59ff15d
4+
- filename: pnpm-lock.yaml
5+
checksum: 87d001c32b1d7f9df30a289c277e0ea13cfd8a0e2e5fa5118956ff4183683e5c
106
version: '1.0'

package-lock.json

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

packages/contentstack-audit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"dependencies": {
2121
"@contentstack/cli-command": "~2.0.0-beta",
22-
"@contentstack/cli-utilities": "~2.0.0-beta",
22+
"@contentstack/cli-utilities": "~2.0.0-beta.1",
2323
"@oclif/core": "^4.3.0",
2424
"@oclif/plugin-help": "^6.2.28",
2525
"chalk": "^4.1.2",

packages/contentstack-auth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-auth",
33
"description": "Contentstack CLI plugin for authentication activities",
4-
"version": "2.0.0-beta.5",
4+
"version": "2.0.0-beta.6",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@contentstack/cli-command": "~2.0.0-beta",
26-
"@contentstack/cli-utilities": "~2.0.0-beta",
26+
"@contentstack/cli-utilities": "~2.0.0-beta.1",
2727
"@oclif/core": "^4.3.0",
2828
"@oclif/plugin-help": "^6.2.28",
2929
"otplib": "^12.0.1"

packages/contentstack-bootstrap/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-bootstrap",
33
"description": "Bootstrap contentstack apps",
4-
"version": "2.0.0-beta.9",
4+
"version": "2.0.0-beta.10",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -16,9 +16,9 @@
1616
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
1717
},
1818
"dependencies": {
19-
"@contentstack/cli-cm-seed": "~2.0.0-beta.8",
19+
"@contentstack/cli-cm-seed": "~2.0.0-beta.9",
2020
"@contentstack/cli-command": "~2.0.0-beta",
21-
"@contentstack/cli-utilities": "~2.0.0-beta",
21+
"@contentstack/cli-utilities": "~2.0.0-beta.1",
2222
"@contentstack/cli-config": "~2.0.0-beta.2",
2323
"@oclif/core": "^4.3.0",
2424
"@oclif/plugin-help": "^6.2.37",

packages/contentstack-branches/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@contentstack/cli-cm-branches",
33
"description": "Contentstack CLI plugin to do branches operations",
4-
"version": "2.0.0-beta",
4+
"version": "2.0.0-beta.1",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
88
"@contentstack/cli-command": "~2.0.0-beta",
99
"@oclif/core": "^4.3.0",
1010
"@oclif/plugin-help": "^6.2.28",
11-
"@contentstack/cli-utilities": "~2.0.0-beta",
11+
"@contentstack/cli-utilities": "~2.0.0-beta.1",
1212
"chalk": "^4.1.2",
1313
"just-diff": "^6.0.2",
1414
"lodash": "^4.17.23"

packages/contentstack-clone/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@contentstack/cli-cm-clone",
33
"description": "Contentstack stack clone plugin",
4-
"version": "2.0.0-beta.10",
4+
"version": "2.0.0-beta.11",
55
"author": "Contentstack",
66
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
77
"dependencies": {
88
"@colors/colors": "^1.6.0",
9-
"@contentstack/cli-cm-export": "~2.0.0-beta.9",
9+
"@contentstack/cli-cm-export": "~2.0.0-beta.10",
1010
"@contentstack/cli-cm-import": "~2.0.0-beta.9",
1111
"@contentstack/cli-command": "~2.0.0-beta",
12-
"@contentstack/cli-utilities": "~2.0.0-beta",
12+
"@contentstack/cli-utilities": "~2.0.0-beta.1",
1313
"@oclif/core": "^4.3.0",
1414
"@oclif/plugin-help": "^6.2.28",
1515
"chalk": "^4.1.2",

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ Use this plugin to automate the process of cloning a stack in few steps.
157157
async run(): Promise<void> {
158158
try {
159159
const self = this;
160+
configHandler.set('log.progressSupportedModule', 'clone');
160161
const { flags: cloneCommandFlags } = await self.parse(StackCloneCommand);
161162
const {
162163
yes,
@@ -227,7 +228,10 @@ Use this plugin to automate the process of cloning a stack in few steps.
227228
config.source_stack = listOfTokens[sourceManagementTokenAlias].apiKey;
228229
log.debug(`Using source token alias: ${sourceManagementTokenAlias}`, cloneContext);
229230
} else if (sourceManagementTokenAlias) {
230-
log.warn(`Provided source token alias (${sourceManagementTokenAlias}) not found in your config.!`, cloneContext);
231+
log.warn(
232+
`Provided source token alias (${sourceManagementTokenAlias}) not found in your config.!`,
233+
cloneContext,
234+
);
231235
}
232236
if (destinationManagementTokenAlias && listOfTokens?.[destinationManagementTokenAlias]) {
233237
config.destination_alias = destinationManagementTokenAlias;
@@ -284,7 +288,10 @@ Use this plugin to automate the process of cloning a stack in few steps.
284288
} catch (error: any) {
285289
if (error) {
286290
await this.cleanUp(pathdir, null, this.createCloneContext('unknown'));
287-
log.error('Stack clone command failed', { ...this.createCloneContext('unknown'), error: error?.message || error });
291+
log.error('Stack clone command failed', {
292+
...this.createCloneContext('unknown'),
293+
error: error?.message || error,
294+
});
288295
}
289296
}
290297
}

packages/contentstack-command/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-command",
33
"description": "Contentstack CLI plugin for configuration",
4-
"version": "2.0.0-beta",
4+
"version": "2.0.0-beta.1",
55
"author": "Contentstack",
66
"main": "lib/index.js",
77
"types": "lib/index.d.ts",
@@ -19,7 +19,7 @@
1919
"test:unit": "mocha --timeout 10000 --forbid-only \"test/unit/**/*.test.ts\""
2020
},
2121
"dependencies": {
22-
"@contentstack/cli-utilities": "~2.0.0-beta",
22+
"@contentstack/cli-utilities": "~2.0.0-beta.1",
2323
"contentstack": "^3.25.3",
2424
"@oclif/core": "^4.3.0",
2525
"@oclif/plugin-help": "^6.2.28"

packages/contentstack-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"dependencies": {
2424
"@contentstack/cli-command": "~2.0.0-beta",
25-
"@contentstack/cli-utilities": "~2.0.0-beta",
25+
"@contentstack/cli-utilities": "~2.0.0-beta.1",
2626
"@contentstack/utils": "~1.7.0",
2727
"@oclif/core": "^4.8.1",
2828
"@oclif/plugin-help": "^6.2.28",

0 commit comments

Comments
 (0)