build: do not throw when running `build --release` for the 1st time (#7587)

This commit is contained in:
Haoqun Jiang 2023-01-28 07:03:21 +08:00 committed by GitHub
parent 261fc12443
commit e340add5a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ async function run() {
if (isRelease) {
// remove build cache for release builds to avoid outdated enum values
await fs.rm(path.resolve(__dirname, '../node_modules/.rts2_cache'), {
force: true,
recursive: true
})
}