@loucompanion/forge-bridge 0.1.3-dev.7b1dc795c37f → 0.1.3-dev.9bc5014a2270
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/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const forgeBridgeVersion = "0.1.3-dev.
|
|
1
|
+
export declare const forgeBridgeVersion = "0.1.3-dev.9bc5014a2270";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const forgeBridgeVersion = "0.1.3-dev.
|
|
1
|
+
export const forgeBridgeVersion = "0.1.3-dev.9bc5014a2270";
|
|
@@ -30,3 +30,7 @@ export declare function createDirectoryLink(sourcePath: string, targetPath: stri
|
|
|
30
30
|
export declare function lockfilesDiffer(baseCheckoutPath: string, worktreePath: string, packageRootRelative: string): Promise<boolean>;
|
|
31
31
|
export declare function requiresInstallFallback(entry: WarmPathEntry, baseCheckoutPath: string, worktreePath: string, sourceExists: boolean): Promise<string | null>;
|
|
32
32
|
export declare function declaresNativeModules(packageRootPath: string): Promise<boolean>;
|
|
33
|
+
export declare function resolveNpmLaunch(args: readonly string[]): {
|
|
34
|
+
command: string;
|
|
35
|
+
args: readonly string[];
|
|
36
|
+
};
|
|
@@ -184,7 +184,8 @@ async function runInstallFallback(entry, worktreePath, reason, executor) {
|
|
|
184
184
|
if (entry.ecosystem === "node") {
|
|
185
185
|
const lockPath = path.join(cwd, "package-lock.json");
|
|
186
186
|
const args = (await pathExists(lockPath)) ? ["ci"] : ["install"];
|
|
187
|
-
|
|
187
|
+
const launch = resolveNpmLaunch(args);
|
|
188
|
+
await executor.run(cwd, launch.command, launch.args);
|
|
188
189
|
return { ecosystem: entry.ecosystem, packageRoot: entry.packageRoot, reason, command: `npm ${args.join(" ")}` };
|
|
189
190
|
}
|
|
190
191
|
if (entry.ecosystem === "python") {
|
|
@@ -286,6 +287,12 @@ async function sha256File(filePath) {
|
|
|
286
287
|
const content = await fs.readFile(filePath);
|
|
287
288
|
return crypto.createHash("sha256").update(content).digest("hex");
|
|
288
289
|
}
|
|
290
|
+
export function resolveNpmLaunch(args) {
|
|
291
|
+
if (process.env.npm_execpath) {
|
|
292
|
+
return { command: process.execPath, args: [process.env.npm_execpath, ...args] };
|
|
293
|
+
}
|
|
294
|
+
return { command: "npm", args };
|
|
295
|
+
}
|
|
289
296
|
const defaultCommandExecutor = {
|
|
290
297
|
async run(cwd, command, args) {
|
|
291
298
|
const result = await defaultProcessRunner.run({ command, cwd, args });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loucompanion/forge-bridge",
|
|
3
|
-
"version": "0.1.3-dev.
|
|
3
|
+
"version": "0.1.3-dev.9bc5014a2270",
|
|
4
4
|
"description": "Forge runner bridge CLI for connecting local developer machines to Forge dispatch.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|