Skip to content

Commit

Permalink
Merge pull request #1622 from contentstack/fix/staging
Browse files Browse the repository at this point in the history
Fix/staging
  • Loading branch information
cs-raj authored Oct 10, 2024
2 parents 38634f4 + 28b690a commit 9607d48
Show file tree
Hide file tree
Showing 9 changed files with 2,419 additions and 416 deletions.
2,751 changes: 2,377 additions & 374 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/contentstack-launch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"adm-zip": "^0.5.16",
"chalk": "^4.1.2",
"cross-fetch": "^3.1.8",
"dotenv": "^16.0.3",
"dotenv": "^16.4.5",
"esm": "^3.2.25",
"express": "^4.21.1",
"form-data": "^4.0.0",
Expand All @@ -41,12 +41,12 @@
"devDependencies": {
"@oclif/test": "^2.5.6",
"@types/adm-zip": "^0.5.5",
"@types/chai": "^4",
"@types/chai": "^4.3.20",
"@types/esm": "^3.2.2",
"@types/ini": "^1.3.34",
"@types/lodash": "^4.17.10",
"@types/node": "^16.18.113",
"chai": "^4",
"chai": "^4.5.0",
"eslint": "^7.32.0",
"eslint-config-oclif": "^4",
"eslint-config-oclif-typescript": "^3.1.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-migration/1.6.2 darwin-arm64 node-v22.2.0
@contentstack/cli-migration/1.6.3 darwin-arm64 node-v22.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
18 changes: 9 additions & 9 deletions packages/contentstack-migration/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@contentstack/cli-migration",
"version": "1.6.2",
"version": "1.6.3",
"author": "@contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "~1.3.2",
"@contentstack/cli-utilities": "~1.8.0",
"async": "^3.2.4",
"async": "^3.2.6",
"callsites": "^3.1.0",
"cardinal": "^2.1.1",
"chalk": "^4.1.0",
"dot-object": "^2.1.4",
"dotenv": "^16.0.3",
"dot-object": "^2.1.5",
"dotenv": "^16.4.5",
"listr": "^0.14.3",
"winston": "^3.7.2"
"winston": "^3.15.0"
},
"devDependencies": {
"@oclif/test": "^2.5.6",
"chai": "^4.3.4",
"chai": "^4.5.0",
"eslint": "^8.18.0",
"globby": "^10.0.2",
"husky": "^8.0.3",
"jsdoc": "^4.0.0",
"jsdoc-to-markdown": "^8.0.0",
"jsdoc": "^4.0.3",
"jsdoc-to-markdown": "^8.0.3",
"mkdirp": "^1.0.4",
"nock": "^13.1.1",
"nock": "^13.5.5",
"nyc": "^15.1.0",
"oclif": "^3.11.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-migration/src/utils/error-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function removeSpecialCharacter(str) {
}

module.exports = (errors, filePath) => {
const logger = new MigrationLogger(process.cwd());
const logger = new MigrationLogger(process.env.CS_CLI_LOG_PATH ?? process.cwd());

const errorsByFile = groupBy(errors, 'file');
const messages = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-migration/src/utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const customFormat = printf(({ level, message }) => {
});

function init(logFileName) {
const logsDir = resolve('logs');
const logsDir = resolve(process.env.CS_CLI_LOG_PATH?? process.cwd(),'logs');
// Create dir if does not exist
makeDir(logsDir);

Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/cli/1.27.0 darwin-arm64 node-v22.2.0
@contentstack/cli/1.28.0 darwin-arm64 node-v22.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli",
"description": "Command-line tool (CLI) to interact with Contentstack",
"version": "1.27.0",
"version": "1.28.0",
"author": "Contentstack",
"bin": {
"csdx": "./bin/run.js"
Expand Down Expand Up @@ -36,7 +36,7 @@
"@contentstack/cli-command": "~1.3.2",
"@contentstack/cli-config": "~1.8.0",
"@contentstack/cli-launch": "~1.2.3",
"@contentstack/cli-migration": "~1.6.2",
"@contentstack/cli-migration": "~1.6.3",
"@contentstack/cli-utilities": "~1.8.0",
"@contentstack/management": "~1.17.0",
"@contentstack/cli-variants": "~1.1.1",
Expand Down
48 changes: 24 additions & 24 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9607d48

Please sign in to comment.