From 48624011abb4593c0170b1829546f1294829935e Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Fri, 23 Aug 2024 19:25:06 +0100 Subject: [PATCH] feat: log the target when running `plasmo build` or `plasmo dev` This logs the `--target` when running `plasmo build` or `plasmo dev`, making it easy to see at a glance what browser target you are building for. This can help to avoid surprises and confusion if the thing you think is getting built isn't getting built! --- cli/plasmo/src/commands/build.ts | 2 ++ cli/plasmo/src/commands/dev.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cli/plasmo/src/commands/build.ts b/cli/plasmo/src/commands/build.ts index b0444f488..610a65f79 100644 --- a/cli/plasmo/src/commands/build.ts +++ b/cli/plasmo/src/commands/build.ts @@ -27,6 +27,8 @@ async function build() { const bundleConfig = getBundleConfig() + iLog("Building for target:", bundleConfig.target) + const plasmoManifest = await createManifest(bundleConfig) const bundler = await createParcelBuilder(plasmoManifest, { diff --git a/cli/plasmo/src/commands/dev.ts b/cli/plasmo/src/commands/dev.ts index 9ed147963..e279d067b 100644 --- a/cli/plasmo/src/commands/dev.ts +++ b/cli/plasmo/src/commands/dev.ts @@ -39,6 +39,8 @@ async function dev() { const bundleConfig = getBundleConfig() + iLog("Building for target:", bundleConfig.target) + const plasmoManifest = await createManifest(bundleConfig) const projectWatcher = await createProjectWatcher(plasmoManifest)