repomap-bin 2.4.6 → 2.5.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 +2 -4
- package/repomap.js +16 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repomap-bin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Standalone repomap binary — tree-sitter AST code intelligence CLI",
|
|
5
5
|
"bin": {
|
|
6
6
|
"repomap": "repomap.js"
|
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
"repomap.js"
|
|
10
10
|
],
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@gjczone/repomap-linux-x64": "2.
|
|
13
|
-
"@gjczone/repomap-darwin-arm64": "2.4.6",
|
|
14
|
-
"@gjczone/repomap-windows-x64": "2.4.6"
|
|
12
|
+
"@gjczone/repomap-linux-x64": "2.5.2"
|
|
15
13
|
},
|
|
16
14
|
"keywords": [
|
|
17
15
|
"repomap",
|
package/repomap.js
CHANGED
|
@@ -4,31 +4,29 @@ const path = require('path');
|
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
|
|
6
6
|
const platforms = [
|
|
7
|
-
|
|
8
|
-
'@gjczone/repomap-darwin-arm64',
|
|
9
|
-
'@gjczone/repomap-windows-x64',
|
|
7
|
+
'@gjczone/repomap-linux-x64',
|
|
10
8
|
];
|
|
11
9
|
|
|
12
10
|
let binPath = null;
|
|
13
11
|
for (const pkg of platforms) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
try {
|
|
13
|
+
const pkgPath = require.resolve(pkg + '/package.json');
|
|
14
|
+
const pkgDir = path.dirname(pkgPath);
|
|
15
|
+
const pkgData = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
16
|
+
const binName = pkgData.bin.repomap;
|
|
17
|
+
const candidate = path.join(pkgDir, binName);
|
|
18
|
+
if (fs.existsSync(candidate)) {
|
|
19
|
+
binPath = candidate;
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
} catch (e) {
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
if (!binPath) {
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
console.error('repomap: no platform binary found. Please reinstall repomap-bin.');
|
|
29
|
+
process.exit(1);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|