@blxzer/cursor-trellis 0.2.3 → 0.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/bin/smart-search.js +13 -13
- package/package.json +2 -2
package/bin/smart-search.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { dirname, join } from "node:path";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
5
4
|
import { spawn } from "node:child_process";
|
|
6
5
|
|
|
7
|
-
const
|
|
8
|
-
const packageRoot = join(__dirname, "..");
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
9
7
|
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"smart-search.
|
|
18
|
-
);
|
|
8
|
+
// Resolve @blxzer/smart-search package location
|
|
9
|
+
let smartSearchBin;
|
|
10
|
+
try {
|
|
11
|
+
const smartSearchPackage = require.resolve("@blxzer/smart-search/package.json");
|
|
12
|
+
const smartSearchRoot = smartSearchPackage.replace(/[\/\\]package\.json$/, "");
|
|
13
|
+
smartSearchBin = `${smartSearchRoot}/bin/smart-search.js`;
|
|
14
|
+
} catch (err) {
|
|
15
|
+
console.error("Error: @blxzer/smart-search dependency not found.");
|
|
16
|
+
console.error("Please reinstall: npm install -g @blxzer/cursor-trellis");
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
19
|
|
|
20
20
|
const child = spawn(process.execPath, [smartSearchBin, ...process.argv.slice(2)], {
|
|
21
21
|
stdio: "inherit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blxzer/cursor-trellis",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"inquirer": "^9.3.7",
|
|
37
37
|
"undici": "^6.21.0",
|
|
38
38
|
"zod": "^4.4.2",
|
|
39
|
-
"@blxzer/cursor-trellis-core": "0.2.
|
|
39
|
+
"@blxzer/cursor-trellis-core": "0.2.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/js": "^9.18.0",
|