Skip to content

Commit 735d699

Browse files
authored
chore: add no-frozen-lockfile flag for templates script (#12394)
1 parent d9c0c43 commit 735d699

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/scripts/src/generate-template-variations.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ async function main() {
152152
generateLockfile: true,
153153
sharp: true,
154154
skipConfig: true, // Do not copy the payload.config.ts file from the base template
155+
skipReadme: true, // Do not copy the README.md file from the base template
155156
storage: 'localDisk',
156157
// The blank template is used as a base for create-payload-app functionality,
157158
// so we do not configure the payload.config.ts file, which leaves the placeholder comments.
@@ -262,10 +263,10 @@ async function main() {
262263

263264
if (generateLockfile) {
264265
log('Generating pnpm-lock.yaml')
265-
execSyncSafe(`pnpm install --ignore-workspace`, { cwd: destDir })
266+
execSyncSafe(`pnpm install --ignore-workspace --no-frozen-lockfile`, { cwd: destDir })
266267
} else {
267268
log('Installing dependencies without generating lockfile')
268-
execSyncSafe(`pnpm install --ignore-workspace`, { cwd: destDir })
269+
execSyncSafe(`pnpm install --ignore-workspace --no-frozen-lockfile`, { cwd: destDir })
269270
await fs.rm(`${destDir}/pnpm-lock.yaml`, { force: true })
270271
}
271272

0 commit comments

Comments
 (0)