From: Haoqun Jiang Date: Fri, 27 Jan 2023 23:03:21 +0000 (+0800) Subject: build: do not throw when running `build --release` for the 1st time (#7587) X-Git-Tag: v3.2.46~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6002%2Fhead;p=thirdparty%2Fvuejs%2Fcore.git build: do not throw when running `build --release` for the 1st time (#7587) --- diff --git a/scripts/build.mjs b/scripts/build.mjs index 090995fc91..a41550a90b 100644 --- a/scripts/build.mjs +++ b/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 }) }