]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: do not throw when running `build --release` for the 1st time (#7587) 6002/head
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 27 Jan 2023 23:03:21 +0000 (07:03 +0800)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 23:03:21 +0000 (07:03 +0800)
scripts/build.mjs

index 090995fc912dd294620a04d1ba0d9895d5253bc9..a41550a90b59cee5b256e0dc234ba9dd174bf360 100644 (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
     })
   }