@mvpscale/aoa 0.0.0 → 0.1.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/install.js +15 -0
- package/package.json +5 -5
package/install.js
CHANGED
|
@@ -37,3 +37,18 @@ const dest = path.join(binDir, "aoa");
|
|
|
37
37
|
try { fs.unlinkSync(dest); } catch {}
|
|
38
38
|
fs.symlinkSync(binPath, dest);
|
|
39
39
|
fs.chmodSync(dest, 0o755);
|
|
40
|
+
|
|
41
|
+
// Guide users to make `aoa` available on PATH
|
|
42
|
+
const isGlobal = process.env.npm_config_global === "true";
|
|
43
|
+
if (!isGlobal) {
|
|
44
|
+
console.log("");
|
|
45
|
+
console.log(" \x1b[36maOa installed.\x1b[0m Run \x1b[1maoa init\x1b[0m to get started.");
|
|
46
|
+
console.log("");
|
|
47
|
+
console.log(" To add aoa to your PATH, add this to your shell profile (~/.bashrc or ~/.zshrc):");
|
|
48
|
+
console.log("");
|
|
49
|
+
console.log(' export PATH="./node_modules/.bin:$PATH"');
|
|
50
|
+
console.log("");
|
|
51
|
+
console.log(" Or run directly: ./node_modules/.bin/aoa");
|
|
52
|
+
console.log(" Or use: npx @mvpscale/aoa");
|
|
53
|
+
console.log("");
|
|
54
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mvpscale/aoa",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "aOa — semantic code search engine",
|
|
5
5
|
"bin": { "aoa": "bin/aoa" },
|
|
6
6
|
"scripts": { "postinstall": "node install.js" },
|
|
7
7
|
"optionalDependencies": {
|
|
8
|
-
"@mvpscale/aoa-linux-x64": "0.
|
|
9
|
-
"@mvpscale/aoa-linux-arm64": "0.
|
|
10
|
-
"@mvpscale/aoa-darwin-x64": "0.
|
|
11
|
-
"@mvpscale/aoa-darwin-arm64": "0.
|
|
8
|
+
"@mvpscale/aoa-linux-x64": "0.1.3",
|
|
9
|
+
"@mvpscale/aoa-linux-arm64": "0.1.3",
|
|
10
|
+
"@mvpscale/aoa-darwin-x64": "0.1.3",
|
|
11
|
+
"@mvpscale/aoa-darwin-arm64": "0.1.3"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": { "type": "git", "url": "https://github.com/mvp-scale/aOa-go" },
|