@henryqw/pi-deps 1.0.3 → 1.0.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/extensions/deps.ts +3 -3
- package/package.json +1 -1
package/extensions/deps.ts
CHANGED
|
@@ -22,7 +22,7 @@ async function existingHook(path: string): Promise<string | undefined> {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
async function toggleDependencyHook(commonGitDir: string): Promise<{ enabled: boolean; path: string }> {
|
|
26
26
|
const source = await readFile(hookSourcePath, "utf8");
|
|
27
27
|
const path = join(commonGitDir, "hooks", "post-checkout");
|
|
28
28
|
const existing = await existingHook(path);
|
|
@@ -83,7 +83,7 @@ interface InstallStatus {
|
|
|
83
83
|
message?: string;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
interface InstallWatchContext {
|
|
87
87
|
cwd: string;
|
|
88
88
|
mode?: string;
|
|
89
89
|
ui: Pick<ExtensionUIContext, "setWidget">;
|
|
@@ -91,7 +91,7 @@ export interface InstallWatchContext {
|
|
|
91
91
|
|
|
92
92
|
// Watches the status file written by the background installer spawned by the post-checkout hook.
|
|
93
93
|
// First consumer wins: the status file is removed once reported.
|
|
94
|
-
|
|
94
|
+
async function watchDependencyInstallation(
|
|
95
95
|
exec: ExtensionAPI["exec"],
|
|
96
96
|
ctx: InstallWatchContext,
|
|
97
97
|
): Promise<void> {
|