fix: pass through build options

This commit is contained in:
cha0s 2021-03-20 07:21:35 -05:00
parent 89ccd8148b
commit 3811fd4eb9

View File

@ -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());