@contentstack/cli-command 1.2.16 → 1.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/lib/index.js +5 -1
- package/package.json +4 -4
package/LICENSE
CHANGED
package/lib/index.js
CHANGED
|
@@ -28,7 +28,11 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
28
28
|
if (!this._region)
|
|
29
29
|
this._region = cli_utilities_1.configHandler.get('region');
|
|
30
30
|
if (!this._region) {
|
|
31
|
-
|
|
31
|
+
//NOTE: this.log suggestion not working
|
|
32
|
+
cli_utilities_1.cliux.print('Error: Region not configured. Please set the region with command $ csdx config:set:region', {
|
|
33
|
+
color: 'red',
|
|
34
|
+
});
|
|
35
|
+
cli_utilities_1.cliux.print(`Suggestions: To set the region https://www.contentstack.com/docs/developers/cli/configure-regions-in-the-cli`, { color: 'yellow' });
|
|
32
36
|
process.exit(1);
|
|
33
37
|
}
|
|
34
38
|
return this._region;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-command",
|
|
3
3
|
"description": "Contentstack CLI plugin for configuration",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.18",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"format": "eslint src/**/*.ts --fix"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contentstack/cli-utilities": "~1.
|
|
20
|
+
"@contentstack/cli-utilities": "~1.6.1",
|
|
21
21
|
"contentstack": "^3.10.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@oclif/test": "^2.
|
|
24
|
+
"@oclif/test": "^2.5.6",
|
|
25
25
|
"@types/chai": "^4.2.18",
|
|
26
26
|
"@types/mkdirp": "^1.0.1",
|
|
27
27
|
"@types/mocha": "^8.2.2",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"chai": "^4.3.4",
|
|
31
31
|
"eslint": "^8.18.0",
|
|
32
32
|
"eslint-config-oclif": "^4.0.0",
|
|
33
|
-
"eslint-config-oclif-typescript": "^0.
|
|
33
|
+
"eslint-config-oclif-typescript": "^3.0.8",
|
|
34
34
|
"mocha": "10.1.0",
|
|
35
35
|
"nyc": "^15.1.0",
|
|
36
36
|
"rimraf": "^2.7.1",
|