native 增加prod参数

This commit is contained in:
wkj 2023-12-19 12:16:03 +08:00
parent 379dd2c455
commit 45866b0ef0
2 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ async function build(cmd) {
const result = cross_spawn_1.default.sync(`cross-env`, [ const result = cross_spawn_1.default.sync(`cross-env`, [
`NODE_ENV=${cmd.mode}`, `NODE_ENV=${cmd.mode}`,
'OAK_PLATFORM=native', 'OAK_PLATFORM=native',
`PROD=${!!cmd.prod}`,
'react-native', 'react-native',
'start' 'start'
].filter(Boolean), { ].filter(Boolean), {

View File

@ -128,6 +128,7 @@ export default async function build(cmd: any) {
[ [
`NODE_ENV=${cmd.mode}`, `NODE_ENV=${cmd.mode}`,
'OAK_PLATFORM=native', 'OAK_PLATFORM=native',
`PROD=${!!cmd.prod}`,
'react-native', 'react-native',
'start', 'start',
].filter(Boolean), ].filter(Boolean),