@contentstack/cli-config 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-config
16
16
  $ csdx COMMAND
17
17
  running command...
18
18
  $ csdx (-v|--version|version)
19
- @contentstack/cli-config/1.0.1 darwin-arm64 node-v16.17.0
19
+ @contentstack/cli-config/1.0.2 darwin-arm64 node-v18.11.0
20
20
  $ csdx --help [COMMAND]
21
21
  USAGE
22
22
  $ csdx COMMAND
@@ -40,7 +40,7 @@ EXAMPLE
40
40
  $ csdx config:get:region
41
41
  ```
42
42
 
43
- _See code: [src/commands/config/get/region.ts](https://github.com/contentstack/cli/blob/v1.0.1/src/commands/config/get/region.ts)_
43
+ _See code: [src/commands/config/get/region.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/get/region.ts)_
44
44
 
45
45
  ## `csdx config:set:region [REGION]`
46
46
 
@@ -66,5 +66,5 @@ EXAMPLES
66
66
  $ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name "India"
67
67
  ```
68
68
 
69
- _See code: [src/commands/config/set/region.ts](https://github.com/contentstack/cli/blob/v1.0.1/src/commands/config/set/region.ts)_
69
+ _See code: [src/commands/config/set/region.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/region.ts)_
70
70
  <!-- commandsstop -->
@@ -1 +1 @@
1
- {"version":"1.0.1","commands":{"config:get:region":{"id":"config:get:region","description":"Get current region set for CLI","pluginName":"@contentstack/cli-config","pluginType":"core","aliases":[],"examples":["$ csdx config:get:region"],"flags":{},"args":[]},"config:set:region":{"id":"config:set:region","description":"Set region for CLI","pluginName":"@contentstack/cli-config","pluginType":"core","aliases":[],"examples":["$ csdx config:set:region","$ csdx config:set:region NA","$ csdx config:set:region NA","$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name \"India\""],"flags":{"cda":{"name":"cda","type":"option","char":"d","description":"Custom host to set for content delivery API, if this flag is added then cma and name flags are required"},"cma":{"name":"cma","type":"option","char":"m","description":"Custom host to set for content management API, , if this flag is added then cda and name flags are required"},"name":{"name":"name","type":"option","char":"n","description":"Name for the region, if this flag is added then cda and cma flags are required"}},"args":[{"name":"region"}]}}}
1
+ {"version":"1.0.2","commands":{"config:get:region":{"id":"config:get:region","description":"Get current region set for CLI","pluginName":"@contentstack/cli-config","pluginType":"core","aliases":[],"examples":["$ csdx config:get:region"],"flags":{},"args":[]},"config:set:region":{"id":"config:set:region","description":"Set region for CLI","pluginName":"@contentstack/cli-config","pluginType":"core","aliases":[],"examples":["$ csdx config:set:region","$ csdx config:set:region NA","$ csdx config:set:region NA","$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name \"India\""],"flags":{"cda":{"name":"cda","type":"option","char":"d","description":"Custom host to set for content delivery API, if this flag is added then cma and name flags are required"},"cma":{"name":"cma","type":"option","char":"m","description":"Custom host to set for content management API, , if this flag is added then cda and name flags are required"},"name":{"name":"name","type":"option","char":"n","description":"Name for the region, if this flag is added then cda and cma flags are required"}},"args":[{"name":"region"}]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-config",
3
3
  "description": "Contentstack CLI plugin for configuration",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run"
@@ -18,16 +18,18 @@
18
18
  "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
19
19
  "posttest": "npm run lint",
20
20
  "lint": "eslint src/**/*.ts",
21
- "format": "eslint src/**/*.ts --fix"
21
+ "format": "eslint src/**/*.ts --fix",
22
+ "test:integration": "mocha --forbid-only \"test/run.test.ts\" --integration-test",
23
+ "test:unit": "mocha --forbid-only \"test/unit/*.test.ts\" --unit-test"
22
24
  },
23
25
  "dependencies": {
24
- "@contentstack/cli-command": "^1.0.1",
25
- "@contentstack/cli-utilities": "^1.0.2",
26
+ "@contentstack/cli-command": "^1.0.2",
27
+ "@contentstack/cli-utilities": "^1.0.3",
26
28
  "@oclif/command": "^1.8.16",
27
29
  "@oclif/config": "^1.18.3",
28
30
  "chalk": "^4.0.0",
29
31
  "debug": "^4.1.1",
30
- "inquirer": "^7.1.0",
32
+ "inquirer": "^8.2.4",
31
33
  "winston": "^3.7.2"
32
34
  },
33
35
  "devDependencies": {
@@ -41,7 +43,6 @@
41
43
  "@types/node": "^14.14.32",
42
44
  "@types/sinon": "^10.0.2",
43
45
  "@types/tar": "^4.0.3",
44
- "@types/winston": "^2.4.4",
45
46
  "chai": "^4.3.4",
46
47
  "eslint": "^8.18.0",
47
48
  "eslint-config-oclif": "^3.1.0",
@@ -52,7 +53,7 @@
52
53
  "rimraf": "^2.7.1",
53
54
  "sinon": "^11.1.1",
54
55
  "tmp": "^0.2.1",
55
- "ts-node": "^8.10.2",
56
+ "ts-node": "^10.9.1",
56
57
  "typescript": "^4.7.4"
57
58
  },
58
59
  "engines": {
@@ -78,7 +79,8 @@
78
79
  ],
79
80
  "protected": [
80
81
  "config:get:region"
81
- ]
82
+ ],
83
+ "repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-config/<%- commandPath %>"
82
84
  },
83
85
  "husky": {
84
86
  "hooks": {