@packageninja/enterprise-cli 1.2.2 → 1.2.4
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.md +26 -26
- package/bin/package-ninja-ee.js +11 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# @packageninja/enterprise-cli
|
|
2
|
-
|
|
3
|
-
Enterprise CLI entry package for Package Ninja.
|
|
4
|
-
|
|
5
|
-
Install globally:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm i -g @packageninja/enterprise-cli
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Run:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
package-ninja-ee login
|
|
15
|
-
package-ninja-ee install
|
|
16
|
-
package-ninja-ee test
|
|
17
|
-
package-ninja-ee publish
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Or run without global install:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npx -y @packageninja/enterprise-cli login
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
This package resolves the correct platform binary package for your OS/CPU.
|
|
1
|
+
# @packageninja/enterprise-cli
|
|
2
|
+
|
|
3
|
+
Enterprise CLI entry package for Package Ninja.
|
|
4
|
+
|
|
5
|
+
Install globally:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i -g @packageninja/enterprise-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Run:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
package-ninja-ee login
|
|
15
|
+
package-ninja-ee install
|
|
16
|
+
package-ninja-ee test
|
|
17
|
+
package-ninja-ee publish
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or run without global install:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx -y @packageninja/enterprise-cli login
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This package resolves the correct platform binary package for your OS/CPU.
|
package/bin/package-ninja-ee.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { spawn } = require("node:child_process");
|
|
4
|
-
const { existsSync } = require("node:fs");
|
|
4
|
+
const { chmodSync, existsSync } = require("node:fs");
|
|
5
5
|
const path = require("node:path");
|
|
6
6
|
|
|
7
7
|
const PLATFORM_TO_PACKAGE = {
|
|
@@ -18,6 +18,15 @@ function fail(message) {
|
|
|
18
18
|
process.exit(1);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
function ensureExecutable(binaryPath) {
|
|
22
|
+
if (process.platform === "win32") return;
|
|
23
|
+
try {
|
|
24
|
+
chmodSync(binaryPath, 0o755);
|
|
25
|
+
} catch (error) {
|
|
26
|
+
fail(`failed to set executable permission on ${binaryPath}: ${error.message}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
21
30
|
function resolveBinary() {
|
|
22
31
|
const override = (process.env.PACKAGE_NINJA_EE_BIN_PATH || "").trim();
|
|
23
32
|
if (override) {
|
|
@@ -45,6 +54,7 @@ function resolveBinary() {
|
|
|
45
54
|
if (!existsSync(binaryPath)) {
|
|
46
55
|
fail(`platform binary not found: ${binaryPath}`);
|
|
47
56
|
}
|
|
57
|
+
ensureExecutable(binaryPath);
|
|
48
58
|
|
|
49
59
|
return binaryPath;
|
|
50
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@packageninja/enterprise-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Package Ninja Enterprise CLI launcher with platform-specific binary dependencies.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"package-ninja-ee": "bin/package-ninja-ee.js"
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@packageninja/enterprise-cli-win32-x64": "1.2.
|
|
14
|
-
"@packageninja/enterprise-cli-win32-arm64": "1.2.
|
|
15
|
-
"@packageninja/enterprise-cli-linux-x64": "1.2.
|
|
16
|
-
"@packageninja/enterprise-cli-linux-arm64": "1.2.
|
|
17
|
-
"@packageninja/enterprise-cli-darwin-x64": "1.2.
|
|
18
|
-
"@packageninja/enterprise-cli-darwin-arm64": "1.2.
|
|
13
|
+
"@packageninja/enterprise-cli-win32-x64": "1.2.4",
|
|
14
|
+
"@packageninja/enterprise-cli-win32-arm64": "1.2.4",
|
|
15
|
+
"@packageninja/enterprise-cli-linux-x64": "1.2.4",
|
|
16
|
+
"@packageninja/enterprise-cli-linux-arm64": "1.2.4",
|
|
17
|
+
"@packageninja/enterprise-cli-darwin-x64": "1.2.4",
|
|
18
|
+
"@packageninja/enterprise-cli-darwin-arm64": "1.2.4"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=20"
|