From b41cd8bcf7406862dfb9fe12a37fd5761877725b Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Sun, 8 Oct 2023 11:02:00 +0900 Subject: [PATCH] feat(wb): make optimizeForDockerBuild remove unused root props and fix '-m docker' --- packages/shared-lib-node/src/env.ts | 1 + packages/wb/src/commands/optimizeForDockerBuild.ts | 8 ++++++++ packages/wb/src/commands/start.ts | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/shared-lib-node/src/env.ts b/packages/shared-lib-node/src/env.ts index 072dac0c..f2ada47e 100644 --- a/packages/shared-lib-node/src/env.ts +++ b/packages/shared-lib-node/src/env.ts @@ -59,6 +59,7 @@ export function loadEnvironmentVariables(argv: Options, cwd: string, orgCwd?: st } envPaths = envPaths.map((envPath) => path.relative(cwd, envPath)); if (argv.verbose) { + console.info(`WB_ENV: ${process.env.WB_ENV}, NODE_ENV: ${process.env.NODE_ENV}`); console.info('Loading env files:', envPaths); } diff --git a/packages/wb/src/commands/optimizeForDockerBuild.ts b/packages/wb/src/commands/optimizeForDockerBuild.ts index c7e29f6c..6b3b4e9b 100644 --- a/packages/wb/src/commands/optimizeForDockerBuild.ts +++ b/packages/wb/src/commands/optimizeForDockerBuild.ts @@ -53,6 +53,8 @@ export const optimizeForDockerBuildCommand: CommandModule