diff --git a/package-lock.json b/package-lock.json index 5a969c6dc3..ccb553ab56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5964,6 +5964,13 @@ "@types/node": "*" } }, + "node_modules/@types/proxyquire": { + "version": "1.3.31", + "resolved": "https://registry.npmjs.org/@types/proxyquire/-/proxyquire-1.3.31.tgz", + "integrity": "sha512-uALowNG2TSM1HNPMMOR0AJwv4aPYPhqB0xlEhkeRTMuto5hjoSPZkvgu1nbPUkz3gEPAHv4sy4DmKsurZiEfRQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/qs": { "version": "6.14.0", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", @@ -12201,6 +12208,20 @@ "node": ">=10" } }, + "node_modules/fill-keys": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fill-keys/-/fill-keys-1.0.2.tgz", + "integrity": "sha512-tcgI872xXjwFF4xgQmLxi76GnwJG3g/3isB1l4/G5Z4zrbddGpBjqZCO9oEAcB5wX0Hj/5iQB3toxfO7in1hHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-object": "~1.0.1", + "merge-descriptors": "~1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -14607,6 +14628,16 @@ "node": ">=8" } }, + "node_modules/is-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.2.tgz", + "integrity": "sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-observable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", @@ -17642,6 +17673,13 @@ "integrity": "sha512-tukRdb9Beu27t6dN+XztSRHq9J0B/CoAOySGzHfn8UTfmqipA5yNT/sDUEyYdAV3Hpka6Wx6kOMxuObdOex60Q==", "license": "MIT" }, + "node_modules/module-not-found-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/module-not-found-error/-/module-not-found-error-1.0.1.tgz", + "integrity": "sha512-pEk4ECWQXV6z2zjhRZUongnLJNUeGQJ3w6OQ5ctGwD+i5o93qjRQUk2Rt6VdNeu3sEP0AB4LcfvdebpxBRVr4g==", + "dev": true, + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -22109,6 +22147,18 @@ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", "license": "MIT" }, + "node_modules/proxyquire": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/proxyquire/-/proxyquire-2.1.3.tgz", + "integrity": "sha512-BQWfCqYM+QINd+yawJz23tbBM40VIGXOdDw3X344KcclI/gtBbdWF6SlQ4nK/bYhF9d27KYug9WzljHC6B9Ysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-keys": "^1.0.2", + "module-not-found-error": "^1.0.1", + "resolve": "^1.11.1" + } + }, "node_modules/psl": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", @@ -28878,6 +28928,7 @@ "@types/mkdirp": "^1.0.2", "@types/mocha": "^8.2.3", "@types/node": "^14.18.63", + "@types/proxyquire": "^1.3.31", "@types/rewire": "^2.5.30", "@types/tar": "^6.1.13", "@types/uuid": "^9.0.8", @@ -28888,6 +28939,7 @@ "mocha": "^10.8.2", "nyc": "^15.1.0", "oclif": "^4.17.46", + "proxyquire": "^2.1.3", "rewire": "^9.0.1", "ts-node": "^10.9.2", "tsx": "^4.20.3", @@ -29141,7 +29193,7 @@ }, "packages/contentstack-seed": { "name": "@contentstack/cli-cm-seed", - "version": "2.0.0-beta.2", + "version": "2.0.0-beta.3", "license": "MIT", "dependencies": { "@contentstack/cli-cm-import": "~2.0.0-beta.2", diff --git a/packages/contentstack-import-setup/.eslintrc b/packages/contentstack-import-setup/.eslintrc index 55a92e2b63..26efdd2eed 100644 --- a/packages/contentstack-import-setup/.eslintrc +++ b/packages/contentstack-import-setup/.eslintrc @@ -8,7 +8,6 @@ "sourceType": "module" }, "extends": [ - "oclif-typescript", "plugin:@typescript-eslint/recommended" ], "rules": { diff --git a/packages/contentstack-import-setup/README.md b/packages/contentstack-import-setup/README.md index 52125daa58..f29a400093 100644 --- a/packages/contentstack-import-setup/README.md +++ b/packages/contentstack-import-setup/README.md @@ -69,14 +69,14 @@ USAGE $ csdx cm:stacks:import-setup [-k ] [-d ] [-a ] [--modules ] FLAGS - -B, --branch= The name of the branch where you want to import your content. If you don't mention the - branch name, then by default the content will be imported to the main branch. -a, --alias= The management token of the destination stack where you will import the content. -d, --data-dir= The path or the location in your file system where the content, you intend to import, is stored. For example, -d "C:\Users\Name\Desktop\cli\content". If the export folder has branches involved, then the path should point till the particular branch. For example, “-d "C:\Users\Name\Desktop\cli\content\branch_name" -k, --stack-api-key= API key of the target stack + --branch= The name of the branch where you want to import your content. If you don't mention the + branch name, then by default the content will be imported to the main branch. --branch-alias= Specify the branch alias where you want to import your content. If not specified, the content is imported into the main branch by default. --module=