launch-unity 0.5.0 → 0.6.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.ja.md CHANGED
@@ -5,6 +5,16 @@ launch-unity
5
5
 
6
6
  Unity Hubを仲介せず、コマンドラインからUnityを立ち上げます。
7
7
 
8
+ ## インストール
9
+
10
+ ```bash
11
+ # グローバルインストール
12
+ npm install -g launch-unity
13
+
14
+ # npxで一時利用(インストール不要)
15
+ npx launch-unity
16
+ ```
17
+
8
18
  ## 使用例
9
19
  ```bash
10
20
  # NPX(推奨 / インストール不要)
@@ -62,5 +72,14 @@ quit-unity [PROJECT_PATH] [--timeout <ms>] [--force]
62
72
  # -h, --help ヘルプ
63
73
  ```
64
74
 
75
+ ## セキュリティ
76
+
77
+ このプロジェクトはサプライチェーン攻撃対策を実施しています:
78
+
79
+ - **ignore-scripts**: `npm install` 時の自動スクリプト実行を無効化
80
+ - **Dependabot**: 週次の自動セキュリティアップデート
81
+ - **Security audit CI**: PR ごとに `npm audit` と `lockfile-lint` を実行
82
+ - **バージョン固定**: すべての依存関係で厳密なバージョンを指定(`^` や `~` 不使用)
83
+
65
84
  ## ライセンス
66
85
  - MIT。詳細は `LICENSE` を参照してください。
package/README.md CHANGED
@@ -5,6 +5,16 @@ launch-unity
5
5
 
6
6
  Without Unity Hub, launch Unity from the command line.
7
7
 
8
+ ## Installation
9
+
10
+ ```bash
11
+ # Global install
12
+ npm install -g launch-unity
13
+
14
+ # Use via npx (no install required)
15
+ npx launch-unity
16
+ ```
17
+
8
18
  ## Usage Examples
9
19
  ```bash
10
20
  # NPX (recommended, zero install)
@@ -42,16 +52,6 @@ Default Unity paths assumed:
42
52
  - `C:\\Program Files\\Unity\\Hub\\Editor\\<version>\\Editor\\Unity.exe`
43
53
 
44
54
 
45
- ## Quick Setup
46
- ```bash
47
- # No install: use npx
48
- npx launch-unity -h
49
-
50
- # Optional: install globally after cloning
51
- npm i -g .
52
- ```
53
-
54
-
55
55
  ## Detailed Usage
56
56
  ```bash
57
57
  # Basic syntax
@@ -86,5 +86,14 @@ quit-unity [PROJECT_PATH] [--timeout <ms>] [--force]
86
86
  - Linux: Not supported yet. Contributions are welcome.
87
87
 
88
88
 
89
+ ## Security
90
+
91
+ This project implements supply chain attack prevention measures:
92
+
93
+ - **ignore-scripts**: Disables automatic script execution during `npm install`
94
+ - **Dependabot**: Automated weekly security updates
95
+ - **Security audit CI**: Runs `npm audit` and `lockfile-lint` on every PR
96
+ - **Pinned versions**: All dependencies use exact versions (no `^` or `~`)
97
+
89
98
  ## License
90
99
  - MIT. See `LICENSE` for details.
package/dist/launch.js CHANGED
@@ -428,7 +428,7 @@ function listSubdirectoriesSorted(dir) {
428
428
  subdirs.sort((a, b) => a.localeCompare(b));
429
429
  entries = subdirs.map((name) => join(dir, name));
430
430
  }
431
- catch (_err) {
431
+ catch {
432
432
  // Ignore directories we cannot read
433
433
  entries = [];
434
434
  }
@@ -440,7 +440,7 @@ function findUnityProjectBfs(rootDir, maxDepth) {
440
440
  try {
441
441
  rootCanonical = realpathSync(rootDir);
442
442
  }
443
- catch (_err) {
443
+ catch {
444
444
  rootCanonical = rootDir;
445
445
  }
446
446
  queue.push({ dir: rootCanonical, depth: 0 });
@@ -467,13 +467,13 @@ function findUnityProjectBfs(rootDir, maxDepth) {
467
467
  try {
468
468
  childCanonical = realpathSync(child);
469
469
  }
470
- catch (_e) {
470
+ catch {
471
471
  // Broken symlink: skip
472
472
  continue;
473
473
  }
474
474
  }
475
475
  }
476
- catch (_err) {
476
+ catch {
477
477
  continue;
478
478
  }
479
479
  const key = toComparablePath(normalizePath(childCanonical));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "launch-unity",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Open a Unity project with the matching Editor version (macOS/Windows)",
5
5
  "type": "module",
6
6
  "main": "dist/launch.js",
@@ -39,15 +39,18 @@
39
39
  "node": ">=18"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/node": "^22.7.4",
43
- "@typescript-eslint/eslint-plugin": "^8.6.0",
44
- "@typescript-eslint/parser": "^8.6.0",
45
- "eslint": "^9.10.0",
46
- "eslint-config-prettier": "^9.1.0",
47
- "prettier": "^3.3.3",
48
- "typescript": "^5.6.2"
42
+ "@types/node": "24.10.1",
43
+ "@typescript-eslint/eslint-plugin": "8.48.0",
44
+ "@typescript-eslint/parser": "8.48.0",
45
+ "eslint": "9.39.1",
46
+ "eslint-config-prettier": "10.1.8",
47
+ "prettier": "3.7.3",
48
+ "typescript": "5.9.3"
49
49
  },
50
50
  "dependencies": {
51
- "typescript-eslint": "^8.42.0"
51
+ "typescript-eslint": "8.48.0"
52
+ },
53
+ "overrides": {
54
+ "js-yaml": "4.1.1"
52
55
  }
53
56
  }