From 05a3a77b9a5ac295d55626baa37a4f1e669fc0de Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Mon, 26 Aug 2024 08:18:12 +0100 Subject: [PATCH] feat: log the target when running `plasmo build` or `plasmo dev` (#1053) 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)