@aerostack/cli 1.5.34 → 1.5.36
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/run.js +4 -0
- package/package.json +1 -1
package/bin/run.js
CHANGED
|
@@ -120,6 +120,10 @@ async function downloadBinary(version, asset) {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
async function ensureBinary() {
|
|
123
|
+
// Developer override: prefer the binary in the root of the Go project if we are running from the monorepo
|
|
124
|
+
const localRepoBin = resolve(__dirname, "..", "..", BINARY);
|
|
125
|
+
if (existsSync(localRepoBin)) return localRepoBin;
|
|
126
|
+
|
|
123
127
|
const binPath = join(INSTALL_DIR, process.platform === "win32" ? `${BINARY}.exe` : BINARY);
|
|
124
128
|
const { arch, asset } = getPlatform();
|
|
125
129
|
|