gorsee 0.2.8 → 0.2.9
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.
|
@@ -47,7 +47,7 @@ export interface UpgradeCommandOptions extends RuntimeOptions {
|
|
|
47
47
|
export declare function performUpgrade(cwd: string, flags: UpgradeFlags, hooks?: {
|
|
48
48
|
fetchLatestVersion?: () => Promise<string | null>;
|
|
49
49
|
getCurrentVersion?: (cwd: string) => Promise<string | null>;
|
|
50
|
-
runInstallStep?: (cwd: string) => Promise<UpgradeStepResult>;
|
|
50
|
+
runInstallStep?: (cwd: string, version: string) => Promise<UpgradeStepResult>;
|
|
51
51
|
runCheckStep?: (cwd: string) => Promise<UpgradeStepResult>;
|
|
52
52
|
}): Promise<UpgradeExecutionResult | null>;
|
|
53
53
|
export declare function upgradeFramework(args: string[], options?: UpgradeCommandOptions): Promise<void>;
|
|
@@ -154,8 +154,8 @@ async function runProcess(command, cwd) {
|
|
|
154
154
|
}).exited;
|
|
155
155
|
return { command, exitCode };
|
|
156
156
|
}
|
|
157
|
-
async function runInstallStep(cwd) {
|
|
158
|
-
return runProcess(["bun", "add", "gorsee
|
|
157
|
+
async function runInstallStep(cwd, version) {
|
|
158
|
+
return runProcess(["bun", "add", "--exact", `gorsee@${version}`], cwd);
|
|
159
159
|
}
|
|
160
160
|
async function runCheckStep(cwd) {
|
|
161
161
|
return runProcess(["bun", "run", "check"], cwd);
|
|
@@ -249,7 +249,7 @@ export async function performUpgrade(cwd, flags, hooks = {}) {
|
|
|
249
249
|
}
|
|
250
250
|
console.log(`
|
|
251
251
|
Installing gorsee@latest...`);
|
|
252
|
-
const installResult = await runInstallStepImpl(cwd);
|
|
252
|
+
const installResult = await runInstallStepImpl(cwd, latest);
|
|
253
253
|
if (installResult.exitCode !== 0) {
|
|
254
254
|
console.log(`
|
|
255
255
|
Install failed (exit code ${installResult.exitCode})
|