@contentstack/cli 1.18.0 → 1.18.1
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 +507 -533
- package/bin/dev.js +7 -0
- package/bin/run.js +6 -0
- package/lib/utils/context-handler.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +19 -19
- package/bin/dev +0 -6
- package/bin/run +0 -5
package/bin/dev.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node_modules/.bin/ts-node
|
|
2
|
+
// eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
|
|
3
|
+
require('dotenv').config({ path: './.env' });
|
|
4
|
+
(async () => {
|
|
5
|
+
const oclif = await import('@oclif/core');
|
|
6
|
+
await oclif.execute({ development: true, dir: __dirname });
|
|
7
|
+
})();
|
package/bin/run.js
ADDED
|
@@ -34,7 +34,7 @@ class CsdxContext {
|
|
|
34
34
|
this.region = cli_utilities_1.configHandler.get('region');
|
|
35
35
|
this.info = { command: cliOpts.id };
|
|
36
36
|
if (command.pluginName) {
|
|
37
|
-
this.plugin = (cliConfig.plugins ||
|
|
37
|
+
this.plugin = (cliConfig.plugins || new Map()).get(command.pluginName) || {};
|
|
38
38
|
this.plugin.name = command.pluginName;
|
|
39
39
|
this.plugin.config = Object.assign({}, ((this.plugin.pjson && this.plugin.pjson.csdxConfig) || {}));
|
|
40
40
|
this.messageFilePath = (0, cli_utilities_1.pathValidator)(path.resolve(this.plugin.root, this.plugin.config.messageFilePath || './messages/index.json'));
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli",
|
|
3
3
|
"description": "Command-line tool (CLI) to interact with Contentstack",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.1",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
|
-
"csdx": "./bin/run"
|
|
7
|
+
"csdx": "./bin/run.js"
|
|
8
8
|
},
|
|
9
9
|
"main": "lib/index.js",
|
|
10
10
|
"types": "lib/index.d.ts",
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~1.6.
|
|
26
|
-
"@contentstack/cli-auth": "~1.3.
|
|
27
|
-
"@contentstack/cli-cm-bootstrap": "~1.9.
|
|
28
|
-
"@contentstack/cli-cm-branches": "~1.0.
|
|
29
|
-
"@contentstack/cli-cm-bulk-publish": "~1.4.
|
|
30
|
-
"@contentstack/cli-cm-export": "~1.11.
|
|
31
|
-
"@contentstack/cli-cm-clone": "~1.10.
|
|
32
|
-
"@contentstack/cli-cm-export-to-csv": "~1.7.
|
|
33
|
-
"@contentstack/cli-cm-import": "~1.15.
|
|
34
|
-
"@contentstack/cli-cm-migrate-rte": "~1.4.
|
|
35
|
-
"@contentstack/cli-cm-seed": "~1.7.
|
|
36
|
-
"@contentstack/cli-command": "~1.2.
|
|
37
|
-
"@contentstack/cli-config": "~1.6.
|
|
38
|
-
"@contentstack/cli-launch": "~1.0.
|
|
39
|
-
"@contentstack/cli-migration": "~1.5.
|
|
40
|
-
"@contentstack/cli-utilities": "~1.6.
|
|
25
|
+
"@contentstack/cli-audit": "~1.6.1",
|
|
26
|
+
"@contentstack/cli-auth": "~1.3.18",
|
|
27
|
+
"@contentstack/cli-cm-bootstrap": "~1.9.2",
|
|
28
|
+
"@contentstack/cli-cm-branches": "~1.0.25",
|
|
29
|
+
"@contentstack/cli-cm-bulk-publish": "~1.4.6",
|
|
30
|
+
"@contentstack/cli-cm-export": "~1.11.3",
|
|
31
|
+
"@contentstack/cli-cm-clone": "~1.10.4",
|
|
32
|
+
"@contentstack/cli-cm-export-to-csv": "~1.7.1",
|
|
33
|
+
"@contentstack/cli-cm-import": "~1.15.5",
|
|
34
|
+
"@contentstack/cli-cm-migrate-rte": "~1.4.17",
|
|
35
|
+
"@contentstack/cli-cm-seed": "~1.7.4",
|
|
36
|
+
"@contentstack/cli-command": "~1.2.18",
|
|
37
|
+
"@contentstack/cli-config": "~1.6.4",
|
|
38
|
+
"@contentstack/cli-launch": "~1.0.18",
|
|
39
|
+
"@contentstack/cli-migration": "~1.5.5",
|
|
40
|
+
"@contentstack/cli-utilities": "~1.6.1",
|
|
41
41
|
"@contentstack/management": "~1.15.3",
|
|
42
|
-
"@oclif/core": "^
|
|
42
|
+
"@oclif/core": "^3.26.5",
|
|
43
43
|
"@oclif/plugin-help": "^5",
|
|
44
44
|
"@oclif/plugin-not-found": "^2.4.0",
|
|
45
45
|
"@oclif/plugin-plugins": "^5.0.0",
|
package/bin/dev
DELETED