Revert bundle command
This commit is contained in:
parent
8a237845e2
commit
c654022300
@ -56,7 +56,8 @@ async function runReactNativeBundleCommand(
|
|||||||
fs.emptyDirSync(outputFolder);
|
fs.emptyDirSync(outputFolder);
|
||||||
|
|
||||||
Array.prototype.push.apply(reactNativeBundleArgs, [
|
Array.prototype.push.apply(reactNativeBundleArgs, [
|
||||||
'bundle',
|
path.join("node_modules", "react-native", "local-cli", "cli.js"),
|
||||||
|
"bundle",
|
||||||
'--assets-dest',
|
'--assets-dest',
|
||||||
outputFolder,
|
outputFolder,
|
||||||
'--bundle-output',
|
'--bundle-output',
|
||||||
@ -77,8 +78,8 @@ async function runReactNativeBundleCommand(
|
|||||||
reactNativeBundleArgs.push('--config', config);
|
reactNativeBundleArgs.push('--config', config);
|
||||||
}
|
}
|
||||||
|
|
||||||
const reactNativeBundleProcess = spawn('react-native', reactNativeBundleArgs);
|
const reactNativeBundleProcess = spawn('node', reactNativeBundleArgs);
|
||||||
console.log(`Running bundle command: react-native ${reactNativeBundleArgs.join(' ')}`);
|
console.log(`Running bundle command: node ${reactNativeBundleArgs.join(' ')}`);
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
reactNativeBundleProcess.stdout.on('data', data => {
|
reactNativeBundleProcess.stdout.on('data', data => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user