Skip to content

Commit

Permalink
fix(cpa): do not overwrite custom.scss file on update (payloadcms#10285)
Browse files Browse the repository at this point in the history
No longer overwrite an existing `custom.scss` file if using
`create-payload-app` to update an existing project.

Fixes payloadcms#9983
  • Loading branch information
denolfe authored Dec 31, 2024
1 parent be87ba0 commit c3eb272
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export async function updatePayloadInProject(
copyRecursiveSync(
templateSrcDir,
path.resolve(projectDir, appDetails.isSrcDir ? 'src/app' : 'app', '(payload)'),
['custom.scss$'], // Do not overwrite user's custom.scss
)

return { message: 'Payload updated successfully.', success: true }
Expand Down

0 comments on commit c3eb272

Please sign in to comment.