Skip to content

Commit a216b1d

Browse files
authored
Init @latest (#332)
Ensure `init` always installs the latest versions of the SDK and Cloud CLI
1 parent ec2599f commit a216b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dbos-runtime/init.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export async function init(appName: string) {
7272
fs.writeFileSync(packageJsonName, JSON.stringify(packageJson, null, 2), 'utf-8');
7373
execSync("npm ci --no-fund", {cwd: appName, stdio: 'inherit'})
7474
execSync("npm uninstall --no-fund @dbos-inc/dbos-sdk", {cwd: appName, stdio: 'inherit'})
75-
execSync("npm install --no-fund --save @dbos-inc/dbos-sdk", {cwd: appName, stdio: 'inherit'})
76-
execSync("npm install --no-fund --save-dev @dbos-inc/dbos-cloud", {cwd: appName, stdio: 'inherit'})
75+
execSync("npm install --no-fund --save @dbos-inc/dbos-sdk@latest", {cwd: appName, stdio: 'inherit'})
76+
execSync("npm install --no-fund --save-dev @dbos-inc/dbos-cloud@latest", {cwd: appName, stdio: 'inherit'})
7777
console.log("Application initialized successfully!")
7878
}

0 commit comments

Comments
 (0)