@contentstack/cli-migration 1.6.1 → 1.6.3

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
@@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration
21
21
  $ csdx COMMAND
22
22
  running command...
23
23
  $ csdx (--version)
24
- @contentstack/cli-migration/1.6.1 darwin-arm64 node-v22.2.0
24
+ @contentstack/cli-migration/1.6.3 darwin-arm64 node-v22.8.0
25
25
  $ csdx --help [COMMAND]
26
26
  USAGE
27
27
  $ csdx COMMAND
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
2
  "name": "@contentstack/cli-migration",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "author": "@contentstack",
5
5
  "bugs": "https://github.com/contentstack/cli/issues",
6
6
  "dependencies": {
7
- "@contentstack/cli-command": "~1.2.19",
8
- "@contentstack/cli-utilities": "~1.7.1",
9
- "async": "^3.2.4",
7
+ "@contentstack/cli-command": "~1.3.2",
8
+ "@contentstack/cli-utilities": "~1.8.0",
9
+ "async": "^3.2.6",
10
10
  "callsites": "^3.1.0",
11
11
  "cardinal": "^2.1.1",
12
12
  "chalk": "^4.1.0",
13
- "dot-object": "^2.1.4",
14
- "dotenv": "^16.0.3",
13
+ "dot-object": "^2.1.5",
14
+ "dotenv": "^16.4.5",
15
15
  "listr": "^0.14.3",
16
- "winston": "^3.7.2"
16
+ "winston": "^3.15.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@oclif/test": "^2.5.6",
20
- "chai": "^4.3.4",
20
+ "chai": "^4.5.0",
21
21
  "eslint": "^8.18.0",
22
22
  "globby": "^10.0.2",
23
23
  "husky": "^8.0.3",
24
- "jsdoc": "^4.0.0",
25
- "jsdoc-to-markdown": "^8.0.0",
24
+ "jsdoc": "^4.0.3",
25
+ "jsdoc-to-markdown": "^8.0.3",
26
26
  "mkdirp": "^1.0.4",
27
- "nock": "^13.1.1",
27
+ "nock": "^13.5.5",
28
28
  "nyc": "^15.1.0",
29
29
  "oclif": "^3.11.3"
30
30
  },
@@ -25,7 +25,7 @@ function removeSpecialCharacter(str) {
25
25
  }
26
26
 
27
27
  module.exports = (errors, filePath) => {
28
- const logger = new MigrationLogger(process.cwd());
28
+ const logger = new MigrationLogger(process.env.CS_CLI_LOG_PATH ?? process.cwd());
29
29
 
30
30
  const errorsByFile = groupBy(errors, 'file');
31
31
  const messages = [];
@@ -29,7 +29,7 @@ const customFormat = printf(({ level, message }) => {
29
29
  });
30
30
 
31
31
  function init(logFileName) {
32
- const logsDir = resolve('logs');
32
+ const logsDir = resolve(process.env.CS_CLI_LOG_PATH?? process.cwd(),'logs');
33
33
  // Create dir if does not exist
34
34
  makeDir(logsDir);
35
35