Compare commits

...
Author SHA1 Message Date
Brent Vatne aadef09d1e [eas-cli] Pass through platform to export command 2022-09-21 15:30:16 -07:00
2 changed files with 5 additions and 1 deletions

No files matched your search

@@ -378,7 +378,7 @@ export default class UpdatePublish extends EasCommand {
if (!skipBundler) {
const bundleSpinner = ora().start('Building bundle...');
try {
await buildBundlesAsync({ projectDir, inputDir });
await buildBundlesAsync({ projectDir, inputDir, platform: platformFlag });
bundleSpinner.succeed('Built bundle!');
} catch (e) {
bundleSpinner.fail('Failed to build bundle!');
+4
View File
@@ -147,9 +147,11 @@ export async function buildUnsortedUpdateInfoGroupAsync(
export async function buildBundlesAsync({
projectDir,
inputDir,
platform = 'all',
}: {
projectDir: string;
inputDir: string;
platform?: PublishPlatform | 'all';
}): Promise<void> {
const packageJSON = JsonFile.read(path.resolve(projectDir, 'package.json'));
if (!packageJSON) {
@@ -160,6 +162,8 @@ export async function buildBundlesAsync({
'export',
'--output-dir',
inputDir,
'--platform',
platform,
'--experimental-bundle',
'--non-interactive',
'--dump-sourcemap',