fix(build): delete stale generated files before generate task (#14262)

This commit is contained in:
Chakru 2025-08-05 19:17:14 +05:30 committed by GitHub
parent da0cb6d093
commit 5725b40a4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,6 +74,10 @@ task yarnGenerate(type: YarnTask, dependsOn: yarnInstall) {
outputs.files(
project.fileTree(dir: "src", include: "**/*.generated.ts"),
)
doFirst{
delete fileTree(dir: 'src', include: '**/*.generated.ts')
}
}
task yarnServe(type: YarnTask, dependsOn: [yarnInstall, yarnGenerate]) {
@ -260,7 +264,7 @@ clean {
delete 'dist'
delete 'tmp'
delete 'just'
delete fileTree(dir: 'src', include: '*.generated.ts')
delete fileTree(dir: 'src', include: '**/*.generated.ts')
delete 'public/assets/capability_summary.json'
}