From 8c4a6d0ce2ae87e6647d2d3de3224297229a1907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Che=C5=82miniak?= Date: Tue, 19 Nov 2024 13:34:25 +0100 Subject: [PATCH] feat: use payload instead of payload@beta --- .../core/installMachine/installSteps/payload/removeTurboFlag.ts | 2 +- .../installMachine/installSteps/payload/runInstallCommand.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/installMachine/installSteps/payload/removeTurboFlag.ts b/packages/core/installMachine/installSteps/payload/removeTurboFlag.ts index f8dde30..ae9f69d 100644 --- a/packages/core/installMachine/installSteps/payload/removeTurboFlag.ts +++ b/packages/core/installMachine/installSteps/payload/removeTurboFlag.ts @@ -19,7 +19,7 @@ export const removeTurboFlag = async () => { // Remove '--turbo' flag from the "dev" script if (packageJson.scripts && packageJson.scripts.dev) { - packageJson.scripts.dev = packageJson.scripts.dev.replace('--turbo', '').trim(); + packageJson.scripts.dev = packageJson.scripts.dev.replace('--turbopack', '').trim(); } // Write the updated package.json back to the file diff --git a/packages/core/installMachine/installSteps/payload/runInstallCommand.ts b/packages/core/installMachine/installSteps/payload/runInstallCommand.ts index 300cab3..d19862d 100644 --- a/packages/core/installMachine/installSteps/payload/runInstallCommand.ts +++ b/packages/core/installMachine/installSteps/payload/runInstallCommand.ts @@ -5,7 +5,7 @@ export const runInstallCommand = async () => { await logger.withSpinner('payload', 'Installing to Next.js...', async (spinner) => { try { await execAsync( - `echo y | npx create-payload-app@beta --db postgres --db-connection-string ${process.env.DB_URL}`, + `echo y | npx create-payload-app --db postgres --db-connection-string ${process.env.DB_URL}`, ); spinner.succeed('Installation completed.');