@thebushidocollective/han 3.4.2 → 3.7.3
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/bin.js +19 -7
- package/package.json +6 -6
package/bin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const { execFileSync } = require('child_process');
|
|
3
|
-
const { existsSync } = require('fs');
|
|
4
|
-
const { join } = require('path');
|
|
2
|
+
const { execFileSync } = require('node:child_process');
|
|
3
|
+
const { existsSync } = require('node:fs');
|
|
4
|
+
const { join } = require('node:path');
|
|
5
5
|
|
|
6
6
|
const platform = process.platform;
|
|
7
7
|
const arch = process.arch;
|
|
@@ -29,10 +29,16 @@ const paths = [
|
|
|
29
29
|
// Installed as dependency
|
|
30
30
|
join(__dirname, '..', '@thebushidocollective', `han-${pkgName}`, binName),
|
|
31
31
|
// npx cache location
|
|
32
|
-
join(
|
|
32
|
+
join(
|
|
33
|
+
__dirname,
|
|
34
|
+
'node_modules',
|
|
35
|
+
'@thebushidocollective',
|
|
36
|
+
`han-${pkgName}`,
|
|
37
|
+
binName
|
|
38
|
+
),
|
|
33
39
|
];
|
|
34
40
|
|
|
35
|
-
let binPath = paths.find(p => existsSync(p));
|
|
41
|
+
let binPath = paths.find((p) => existsSync(p));
|
|
36
42
|
|
|
37
43
|
if (!binPath) {
|
|
38
44
|
// Try to install the platform package on-demand
|
|
@@ -41,9 +47,15 @@ if (!binPath) {
|
|
|
41
47
|
console.error(`Installing ${pkg}...`);
|
|
42
48
|
execFileSync('npm', ['install', '--no-save', pkg], {
|
|
43
49
|
stdio: 'inherit',
|
|
44
|
-
cwd: __dirname
|
|
50
|
+
cwd: __dirname,
|
|
45
51
|
});
|
|
46
|
-
binPath = join(
|
|
52
|
+
binPath = join(
|
|
53
|
+
__dirname,
|
|
54
|
+
'node_modules',
|
|
55
|
+
'@thebushidocollective',
|
|
56
|
+
`han-${pkgName}`,
|
|
57
|
+
binName
|
|
58
|
+
);
|
|
47
59
|
} catch (e) {
|
|
48
60
|
console.error(`Failed to install platform package: ${e.message}`);
|
|
49
61
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebushidocollective/han",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.3",
|
|
4
4
|
"description": "CLI for installing and managing curated Claude Code plugins from the Han marketplace",
|
|
5
5
|
"homepage": "https://han.guru",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"han": "bin.js"
|
|
13
13
|
},
|
|
14
14
|
"optionalDependencies": {
|
|
15
|
-
"@thebushidocollective/han-darwin-arm64": "3.
|
|
16
|
-
"@thebushidocollective/han-darwin-x64": "3.
|
|
17
|
-
"@thebushidocollective/han-linux-arm64": "3.
|
|
18
|
-
"@thebushidocollective/han-linux-x64": "3.
|
|
19
|
-
"@thebushidocollective/han-win32-x64": "3.
|
|
15
|
+
"@thebushidocollective/han-darwin-arm64": "3.7.3",
|
|
16
|
+
"@thebushidocollective/han-darwin-x64": "3.7.3",
|
|
17
|
+
"@thebushidocollective/han-linux-arm64": "3.7.3",
|
|
18
|
+
"@thebushidocollective/han-linux-x64": "3.7.3",
|
|
19
|
+
"@thebushidocollective/han-win32-x64": "3.7.3"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
22
22
|
"claude",
|