@comet/create-app 1.1.0 → 1.3.0
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/lib/index.js +1 -1
- package/lib/util/isValidNodeVersion.js +3 -3
- package/package.json +4 -3
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const isValidProjectName_1 = require("./util/isValidProjectName");
|
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
15
15
|
const { name, version } = require("../package.json");
|
|
16
16
|
if (!(0, isValidNodeVersion_1.isValidNodeVersion)()) {
|
|
17
|
-
console.error("Invalid Node Version (your Node.js version is prior to
|
|
17
|
+
console.error("Invalid Node Version (your Node.js version is prior to v20).");
|
|
18
18
|
process.exit(1);
|
|
19
19
|
}
|
|
20
20
|
void (async () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isValidNodeVersion = void 0;
|
|
4
|
-
function
|
|
4
|
+
function isNodeVersionGreaterThan20() {
|
|
5
5
|
const [major] = process.versions.node.split(".").map(Number);
|
|
6
|
-
return major >=
|
|
6
|
+
return major >= 20;
|
|
7
7
|
}
|
|
8
8
|
function isValidNodeVersion() {
|
|
9
|
-
return
|
|
9
|
+
return isNodeVersionGreaterThan20();
|
|
10
10
|
}
|
|
11
11
|
exports.isValidNodeVersion = isValidNodeVersion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/create-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Command-line interface to create a new Comet application",
|
|
5
5
|
"homepage": "https://github.com/vivid-planet/comet-starter/tree/main/create-app#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
"rimraf": "^5.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@comet/eslint-config": "^5.
|
|
41
|
-
"@tsconfig/
|
|
40
|
+
"@comet/eslint-config": "^5.6.0",
|
|
41
|
+
"@tsconfig/node20": "^20.1.2",
|
|
42
|
+
"@types/node": "^20.0.0",
|
|
42
43
|
"prettier": "^2.1.2",
|
|
43
44
|
"typescript": "~5.1.0"
|
|
44
45
|
},
|