create-next2d-app 2.1.11 → 2.1.13
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/dist/index.d.ts +1 -1
- package/dist/index.js +8 -4
- package/package.json +8 -9
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,11 +10,11 @@ const fs = require("fs-extra");
|
|
|
10
10
|
const os = require("os");
|
|
11
11
|
const semver = require("semver");
|
|
12
12
|
const spawn = require("cross-spawn");
|
|
13
|
-
const
|
|
13
|
+
const recommendedVersion = 22;
|
|
14
14
|
const version = process.versions.node;
|
|
15
|
-
if (
|
|
15
|
+
if (recommendedVersion > parseInt(version.split(".")[0])) {
|
|
16
16
|
pc.red(`You are running Node Version:${version}.
|
|
17
|
-
View Generator requires Node ${
|
|
17
|
+
View Generator requires Node ${recommendedVersion} or higher.
|
|
18
18
|
Please update your version of Node.`);
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
@@ -105,7 +105,7 @@ const checkNpmVersion = () => {
|
|
|
105
105
|
let npmVersion = "0.0.0";
|
|
106
106
|
try {
|
|
107
107
|
npmVersion = execSync("npm --version").toString().trim();
|
|
108
|
-
hasMinNpm = semver.gte(npmVersion, "
|
|
108
|
+
hasMinNpm = semver.gte(npmVersion, "10.0.0");
|
|
109
109
|
}
|
|
110
110
|
catch (err) {
|
|
111
111
|
// ignore
|
|
@@ -311,6 +311,10 @@ const createApp = (app_name, template = "@next2d/framework-template") => {
|
|
|
311
311
|
"build:steam:macos": "npx @next2d/builder --platform steam:macos --env prd",
|
|
312
312
|
"build:steam:linux": "npx @next2d/builder --platform steam:linux --env prd",
|
|
313
313
|
"build:web": "npx @next2d/builder --platform web --env prd",
|
|
314
|
+
"open:ios": "npx @next2d/builder --platform ios --open --env prd",
|
|
315
|
+
"build:ios": "npx @next2d/builder --platform ios --build --env prd",
|
|
316
|
+
"open:android": "npx @next2d/builder --platform android --open --env prd",
|
|
317
|
+
"build:android": "npx @next2d/builder --platform android --build --env prd",
|
|
314
318
|
"build": "npx @next2d/builder",
|
|
315
319
|
"test": "npx vitest",
|
|
316
320
|
"generate": "npx @next2d/view-generator"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-next2d-app",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
4
4
|
"description": "Create Next2D apps with no build configuration.",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@next2d.app>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,23 +27,22 @@
|
|
|
27
27
|
"create-next2d-app": "dist/index.js"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@types/node": "^24.
|
|
30
|
+
"@types/node": "^24.10.1",
|
|
31
31
|
"commander": "14.0.2",
|
|
32
32
|
"cross-spawn": "7.0.6",
|
|
33
33
|
"fs-extra": "11.3.2",
|
|
34
34
|
"picocolors": "^1.1.1",
|
|
35
35
|
"semver": "7.7.3",
|
|
36
|
-
"tar-pack": "3.4.1",
|
|
37
36
|
"validate-npm-package-name": "7.0.0"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
|
-
"@eslint/eslintrc": "^3.3.
|
|
41
|
-
"@eslint/js": "^9.39.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
43
|
-
"@typescript-eslint/parser": "^8.
|
|
44
|
-
"eslint": "^9.39.
|
|
39
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
40
|
+
"@eslint/js": "^9.39.1",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
42
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
43
|
+
"eslint": "^9.39.1",
|
|
45
44
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
46
|
-
"globals": "^16.
|
|
45
|
+
"globals": "^16.5.0",
|
|
47
46
|
"typescript": "^5.9.3"
|
|
48
47
|
}
|
|
49
48
|
}
|