]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: improve build output path logging
authordaiwei <daiwei521@126.com>
Mon, 25 Aug 2025 01:01:15 +0000 (09:01 +0800)
committerdaiwei <daiwei521@126.com>
Mon, 25 Aug 2025 01:01:15 +0000 (09:01 +0800)
scripts/build.js

index 63cbecf85683ec70890adf5940ff8fc8544b3602..09ca9c1016081f8e8d2965979e4c5ebd8fe21280 100644 (file)
@@ -129,9 +129,12 @@ async function buildAll(targets) {
             })
           }),
         ).then(files => {
+          const from = process.cwd()
           files.forEach(f => {
             count++
-            console.log(pico.gray('built: ') + pico.green(f))
+            console.log(
+              pico.gray('built: ') + pico.green(path.relative(from, f)),
+            )
           })
         }),
       )