@contentstack/cli 2.0.0-beta.3 → 2.0.0-beta.5
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/LICENSE +1 -1
- package/README.md +243 -833
- package/lib/hooks/prerun/latest-version-warning.js +5 -1
- package/oclif.manifest.json +1 -1
- package/package.json +21 -21
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
5
5
|
const semver = tslib_1.__importStar(require("semver"));
|
|
6
6
|
const versionUpgradeWarningFrequency = {
|
|
7
|
-
versionSyncDuration: 3 * 24 * 60 * 60 * 1000,
|
|
7
|
+
versionSyncDuration: 3 * 24 * 60 * 60 * 1000, // 3 days
|
|
8
8
|
};
|
|
9
9
|
async function default_1(_opts) {
|
|
10
10
|
var _a, _b;
|
|
@@ -12,6 +12,10 @@ async function default_1(_opts) {
|
|
|
12
12
|
const today = new Date().toISOString().split('T')[0];
|
|
13
13
|
const logger = new cli_utilities_1.LoggerService(process.env.CS_CLI_LOG_PATH || process.cwd(), 'cli-log');
|
|
14
14
|
let cache = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' };
|
|
15
|
+
// if CLI_VERSION is not set or is not the same as the current version, set it
|
|
16
|
+
if (!cli_utilities_1.configHandler.get('CLI_VERSION') || cli_utilities_1.configHandler.get('CLI_VERSION') !== this.config.version) {
|
|
17
|
+
cli_utilities_1.configHandler.set('CLI_VERSION', this.config.version); // set current version in configHandler
|
|
18
|
+
}
|
|
15
19
|
if (!cli_utilities_1.configHandler.get('versionUpgradeWarningFrequency')) {
|
|
16
20
|
cli_utilities_1.configHandler.set('versionUpgradeWarningFrequency', versionUpgradeWarningFrequency);
|
|
17
21
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli",
|
|
3
3
|
"description": "Command-line tool (CLI) to interact with Contentstack",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.5",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run.js"
|
|
@@ -22,28 +22,28 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~2.0.0-beta",
|
|
26
|
-
"@contentstack/cli-auth": "~
|
|
27
|
-
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.
|
|
28
|
-
"@contentstack/cli-cm-branches": "~1.6.
|
|
29
|
-
"@contentstack/cli-cm-bulk-publish": "~1.10.
|
|
30
|
-
"@contentstack/cli-cm-clone": "~2.0.0-beta.
|
|
31
|
-
"@contentstack/cli-cm-export": "~2.0.0-beta.
|
|
32
|
-
"@contentstack/cli-cm-export-to-csv": "~1.
|
|
33
|
-
"@contentstack/cli-cm-import": "~2.0.0-beta.
|
|
34
|
-
"@contentstack/cli-cm-import-setup": "~2.0.0-beta.
|
|
35
|
-
"@contentstack/cli-cm-seed": "~2.0.0-beta.
|
|
36
|
-
"@contentstack/cli-command": "~1.7.
|
|
37
|
-
"@contentstack/cli-config": "~1.
|
|
38
|
-
"@contentstack/cli-launch": "
|
|
39
|
-
"@contentstack/cli-migration": "~2.0.0-beta",
|
|
40
|
-
"@contentstack/cli-utilities": "~1.
|
|
41
|
-
"@contentstack/cli-variants": "~2.0.0-beta.
|
|
42
|
-
"@contentstack/management": "~1.
|
|
25
|
+
"@contentstack/cli-audit": "~2.0.0-beta.2",
|
|
26
|
+
"@contentstack/cli-auth": "~2.0.0-beta.2",
|
|
27
|
+
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.4",
|
|
28
|
+
"@contentstack/cli-cm-branches": "~1.6.3",
|
|
29
|
+
"@contentstack/cli-cm-bulk-publish": "~1.10.6",
|
|
30
|
+
"@contentstack/cli-cm-clone": "~2.0.0-beta.5",
|
|
31
|
+
"@contentstack/cli-cm-export": "~2.0.0-beta.5",
|
|
32
|
+
"@contentstack/cli-cm-export-to-csv": "~1.11.0",
|
|
33
|
+
"@contentstack/cli-cm-import": "~2.0.0-beta.4",
|
|
34
|
+
"@contentstack/cli-cm-import-setup": "~2.0.0-beta.3",
|
|
35
|
+
"@contentstack/cli-cm-seed": "~2.0.0-beta.4",
|
|
36
|
+
"@contentstack/cli-command": "~1.7.2",
|
|
37
|
+
"@contentstack/cli-config": "~1.18.0",
|
|
38
|
+
"@contentstack/cli-launch": "1.9.3",
|
|
39
|
+
"@contentstack/cli-migration": "~2.0.0-beta.2",
|
|
40
|
+
"@contentstack/cli-utilities": "~1.17.0",
|
|
41
|
+
"@contentstack/cli-variants": "~2.0.0-beta.4",
|
|
42
|
+
"@contentstack/management": "~1.27.3",
|
|
43
43
|
"@oclif/core": "^4.3.0",
|
|
44
44
|
"@oclif/plugin-help": "^6.2.28",
|
|
45
45
|
"@oclif/plugin-not-found": "^3.2.53",
|
|
46
|
-
"@oclif/plugin-plugins": "^5.4.
|
|
46
|
+
"@oclif/plugin-plugins": "^5.4.54",
|
|
47
47
|
"chalk": "^4.1.2",
|
|
48
48
|
"cli-progress": "^3.12.0",
|
|
49
49
|
"debug": "^4.4.1",
|
|
@@ -167,4 +167,4 @@
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"repository": "https://github.com/contentstack/cli"
|
|
170
|
-
}
|
|
170
|
+
}
|