From 3811fd4eb99b5b376bb044299234dd05080b3f16 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 20 Mar 2021 07:21:35 -0500 Subject: [PATCH] fix: pass through build options --- packages/build/src/build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/build/src/build.js b/packages/build/src/build.js index afa795e..c664e61 100755 --- a/packages/build/src/build.js +++ b/packages/build/src/build.js @@ -32,7 +32,8 @@ const build = async (args = []) => { '--mode', production ? 'production' : 'development', ] - .concat(args), + .concat(args) + .concat(process.argv.slice(2)), { env: { NODE_PATH: './node_modules', @@ -52,6 +53,7 @@ const build = async (args = []) => { program .command('build', {isDefault: true}) + .allowUnknownOption() .description('build package') .action(() => build());