Browse Source

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

Haoqun Jiang 3 years ago
parent
commit
e340add5a5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/build.mjs

+ 1 - 0
scripts/build.mjs

@@ -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
     })
   }