mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-30 20:15:56 +00:00
fix(build): delete stale generated files before generate task (#14262)
This commit is contained in:
parent
da0cb6d093
commit
5725b40a4e
@ -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'
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user