[build] Clean tsbuildinfo from distribution (#92115) (#92517)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Kibana Machine 2021-02-23 17:39:08 -05:00 committed by GitHub
parent 04451c7a50
commit bc0ef52c82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ export const CleanTypescript: Task = {
'Deleted %d files',
await scanDelete({
directory: build.resolvePath(),
regularExpressions: [/\.(ts|tsx|d\.ts)$/, /tsconfig.*\.json$/],
regularExpressions: [/\.(ts|tsx|d\.ts)$/, /tsconfig.*\.(json|tsbuildinfo)$/],
})
);
},