Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions packages/cli/src/commands/bundle/saveAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import fs from 'fs';
import filterPlatformAssetScales from './filterPlatformAssetScales';
import getAssetDestPathAndroid from './getAssetDestPathAndroid';
import getAssetDestPathIOS from './getAssetDestPathIOS';
import {logger, CLIError} from '@react-native-community/cli-tools';
import {logger} from '@react-native-community/cli-tools';
import {AssetData} from './buildBundle';

interface CopiedFiles {
Expand All @@ -30,12 +30,6 @@ function saveAssets(
return Promise.resolve();
}

if (!fs.existsSync(assetsDest)) {
throw new CLIError(
`The specified assets destination folder "${assetsDest}" does not exist.`,
);
}

const getAssetDestPath =
platform === 'android' ? getAssetDestPathAndroid : getAssetDestPathIOS;

Expand Down