@omut/cli 0.0.1 → 0.0.2
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/package.json +6 -6
- package/bin/omut +0 -45
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omut/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "AI-powered conventional commit CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"bin/"
|
|
11
11
|
],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@omut/darwin-arm64": "0.0.
|
|
14
|
-
"@omut/darwin-x64": "0.0.
|
|
15
|
-
"@omut/linux-x64": "0.0.
|
|
16
|
-
"@omut/linux-arm64": "0.0.
|
|
17
|
-
"@omut/win32-x64": "0.0.
|
|
13
|
+
"@omut/darwin-arm64": "0.0.2",
|
|
14
|
+
"@omut/darwin-x64": "0.0.2",
|
|
15
|
+
"@omut/linux-x64": "0.0.2",
|
|
16
|
+
"@omut/linux-arm64": "0.0.2",
|
|
17
|
+
"@omut/win32-x64": "0.0.2"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
package/bin/omut
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const { execFileSync } = require("child_process");
|
|
4
|
-
const { join } = require("path");
|
|
5
|
-
|
|
6
|
-
const PLATFORMS = {
|
|
7
|
-
"darwin arm64": "@omut/darwin-arm64",
|
|
8
|
-
"darwin x64": "@omut/darwin-x64",
|
|
9
|
-
"linux x64": "@omut/linux-x64",
|
|
10
|
-
"linux arm64": "@omut/linux-arm64",
|
|
11
|
-
"win32 x64": "@omut/win32-x64",
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const key = `${process.platform} ${process.arch}`;
|
|
15
|
-
const pkg = PLATFORMS[key];
|
|
16
|
-
|
|
17
|
-
if (!pkg) {
|
|
18
|
-
console.error(
|
|
19
|
-
`Unsupported platform: ${process.platform} ${process.arch}. ` +
|
|
20
|
-
`Supported: ${Object.keys(PLATFORMS).join(", ")}`,
|
|
21
|
-
);
|
|
22
|
-
process.exit(1);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const binName = process.platform === "win32" ? "omut.exe" : "omut";
|
|
26
|
-
|
|
27
|
-
let binPath;
|
|
28
|
-
try {
|
|
29
|
-
binPath = require.resolve(join(pkg, "bin", binName));
|
|
30
|
-
} catch {
|
|
31
|
-
console.error(
|
|
32
|
-
`Could not find the binary for ${pkg}. ` +
|
|
33
|
-
`Make sure optional dependencies are installed.`,
|
|
34
|
-
);
|
|
35
|
-
process.exit(1);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
try {
|
|
39
|
-
execFileSync(binPath, process.argv.slice(2), {
|
|
40
|
-
stdio: "inherit",
|
|
41
|
-
env: process.env,
|
|
42
|
-
});
|
|
43
|
-
} catch (e) {
|
|
44
|
-
process.exit(e.status ?? 1);
|
|
45
|
-
}
|