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 }) }