Compare commits

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