From 735d6998041f88aeb53e2fac6b4139a76310810c Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 13 May 2025 07:15:38 -0700 Subject: [PATCH] chore: add no-frozen-lockfile flag for templates script (#12394) --- tools/scripts/src/generate-template-variations.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/scripts/src/generate-template-variations.ts b/tools/scripts/src/generate-template-variations.ts index ada860ff1..7a6054df9 100644 --- a/tools/scripts/src/generate-template-variations.ts +++ b/tools/scripts/src/generate-template-variations.ts @@ -152,6 +152,7 @@ async function main() { generateLockfile: true, sharp: true, skipConfig: true, // Do not copy the payload.config.ts file from the base template + skipReadme: true, // Do not copy the README.md file from the base template storage: 'localDisk', // The blank template is used as a base for create-payload-app functionality, // so we do not configure the payload.config.ts file, which leaves the placeholder comments. @@ -262,10 +263,10 @@ async function main() { if (generateLockfile) { log('Generating pnpm-lock.yaml') - execSyncSafe(`pnpm install --ignore-workspace`, { cwd: destDir }) + execSyncSafe(`pnpm install --ignore-workspace --no-frozen-lockfile`, { cwd: destDir }) } else { log('Installing dependencies without generating lockfile') - execSyncSafe(`pnpm install --ignore-workspace`, { cwd: destDir }) + execSyncSafe(`pnpm install --ignore-workspace --no-frozen-lockfile`, { cwd: destDir }) await fs.rm(`${destDir}/pnpm-lock.yaml`, { force: true }) }