@forge/cli 2.0.7-next.22 → 3.0.0-next.10
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/CHANGELOG.md +193 -0
- package/npm-shrinkwrap.json +1660 -3454
- package/out/command-line/cli-prerequisites.d.ts.map +1 -1
- package/out/command-line/cli-prerequisites.js +7 -2
- package/out/command-line/version-info.d.ts +1 -0
- package/out/command-line/version-info.d.ts.map +1 -1
- package/out/command-line/version-info.js +3 -2
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-prerequisites.d.ts","sourceRoot":"","sources":["../../src/command-line/cli-prerequisites.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-prerequisites.d.ts","sourceRoot":"","sources":["../../src/command-line/cli-prerequisites.ts"],"names":[],"mappings":"AAMA,wBAAgB,gBAAgB,IAAI,IAAI,CAYvC;AAED,wBAAgB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAyBlD"}
|
|
@@ -5,12 +5,17 @@ const child_process_1 = require("child_process");
|
|
|
5
5
|
const semver_1 = require("semver");
|
|
6
6
|
const version_info_1 = require("./version-info");
|
|
7
7
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
8
|
+
const getNodeVersion_1 = require("./controller/getNodeVersion");
|
|
8
9
|
function checkNodeVersion() {
|
|
9
10
|
const cliDetails = version_info_1.getCLIDetails();
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
const userNodeVersion = getNodeVersion_1.getNodeVersion();
|
|
12
|
+
if (cliDetails && !semver_1.satisfies(userNodeVersion, cliDetails.compatibleNodeVersion)) {
|
|
13
|
+
console.error(cli_shared_1.Text.error.outdatedNodeVersion(cliDetails.compatibleNodeVersion, userNodeVersion));
|
|
12
14
|
process.exit(1);
|
|
13
15
|
}
|
|
16
|
+
if (!semver_1.satisfies(userNodeVersion, version_info_1.supportedNodeVersion)) {
|
|
17
|
+
console.warn(cli_shared_1.Text.warning.unsupportedNodeVersion(userNodeVersion));
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
exports.checkNodeVersion = checkNodeVersion;
|
|
16
21
|
function checkPythonVersion() {
|
|
@@ -2,6 +2,7 @@ export declare const VERSION_CACHE_KEY = "latest";
|
|
|
2
2
|
export declare const VERSION_CACHE_INTERVAL: number;
|
|
3
3
|
import { CLIDetails } from '@forge/cli-shared';
|
|
4
4
|
export declare const getCLIDetails: () => CLIDetails | undefined;
|
|
5
|
+
export declare const supportedNodeVersion = "12.x || 14.x || 16.x";
|
|
5
6
|
export declare const cacheLatestVersion: (name: string) => Promise<void>;
|
|
6
7
|
export declare const clearVersionCache: (name: string) => void;
|
|
7
8
|
//# sourceMappingURL=version-info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-info.d.ts","sourceRoot":"","sources":["../../src/command-line/version-info.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,sBAAsB,QAAsB,CAAC;AAE1D,OAAO,EAAc,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE3D,eAAO,MAAM,aAAa,QAAO,UAAU,GAAG,SAgB7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAgB,MAAM,KAAG,OAAO,CAAC,IAAI,CAInE,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,MAAM,SAG7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"version-info.d.ts","sourceRoot":"","sources":["../../src/command-line/version-info.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,sBAAsB,QAAsB,CAAC;AAE1D,OAAO,EAAc,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE3D,eAAO,MAAM,aAAa,QAAO,UAAU,GAAG,SAgB7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,eAAO,MAAM,kBAAkB,SAAgB,MAAM,KAAG,OAAO,CAAC,IAAI,CAInE,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,MAAM,SAG7C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clearVersionCache = exports.cacheLatestVersion = exports.getCLIDetails = exports.VERSION_CACHE_INTERVAL = exports.VERSION_CACHE_KEY = void 0;
|
|
3
|
+
exports.clearVersionCache = exports.cacheLatestVersion = exports.supportedNodeVersion = exports.getCLIDetails = exports.VERSION_CACHE_INTERVAL = exports.VERSION_CACHE_KEY = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const latest_version_1 = tslib_1.__importDefault(require("latest-version"));
|
|
6
6
|
exports.VERSION_CACHE_KEY = 'latest';
|
|
@@ -15,13 +15,14 @@ exports.getCLIDetails = () => {
|
|
|
15
15
|
name: packageInfo.name,
|
|
16
16
|
version: packageInfo.version,
|
|
17
17
|
latest: latest,
|
|
18
|
-
|
|
18
|
+
compatibleNodeVersion: packageInfo.engines.node
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
catch (_a) {
|
|
22
22
|
return undefined;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
+
exports.supportedNodeVersion = '12.x || 14.x || 16.x';
|
|
25
26
|
exports.cacheLatestVersion = async (name) => {
|
|
26
27
|
const latest = await latest_version_1.default(name);
|
|
27
28
|
const cachedConf = cli_shared_1.CachedConf.getCache(name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.10",
|
|
4
4
|
"description": "A command line interface for managing Atlassian-hosted apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"postinstall": "node -e \"process.exitCode = fs.existsSync('./out/bin/postinstall.js')\" || node ./out/bin/postinstall.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@forge/bundler": "
|
|
22
|
-
"@forge/cli-shared": "2.2.
|
|
23
|
-
"@forge/csp": "^1.9.0
|
|
24
|
-
"@forge/lint": "
|
|
25
|
-
"@forge/manifest": "
|
|
26
|
-
"@forge/util": "1.0.
|
|
21
|
+
"@forge/bundler": "2.0.0-next.9",
|
|
22
|
+
"@forge/cli-shared": "2.2.1-next.7",
|
|
23
|
+
"@forge/csp": "^1.9.0",
|
|
24
|
+
"@forge/lint": "3.0.0-next.9",
|
|
25
|
+
"@forge/manifest": "3.1.0-next.7",
|
|
26
|
+
"@forge/util": "1.1.0-next.0",
|
|
27
27
|
"ajv": "^6.12.5",
|
|
28
28
|
"archiver": "^5.2.0",
|
|
29
29
|
"case": "^1.6.2",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"latest-version": "^5.1.0",
|
|
41
41
|
"lodash": "^4.17.20",
|
|
42
42
|
"mkdirp": "^1.0.3",
|
|
43
|
-
"node-fetch": "
|
|
43
|
+
"node-fetch": "2.6.1",
|
|
44
44
|
"node-machine-id": "^1.1.12",
|
|
45
45
|
"omelette": "^0.4.15-1",
|
|
46
46
|
"ora": "^4.0.3",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"@types/tmp": "^0.1.0",
|
|
72
72
|
"@types/unzipper": "^0.10.1",
|
|
73
73
|
"@types/uuid": "^3.4.7",
|
|
74
|
-
"@types/webpack": "
|
|
74
|
+
"@types/webpack": "^5.28.0",
|
|
75
75
|
"jest-fixtures": "^0.6.0",
|
|
76
|
-
"memfs": "^
|
|
76
|
+
"memfs": "^3.4.1"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
79
|
"keytar": "^5.0.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
|
-
"node": ">=
|
|
82
|
+
"node": ">=12.13.1"
|
|
83
83
|
}
|
|
84
84
|
}
|