Skip to content

Commit

Permalink
fix(cli): default to new directory instead of crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Jan 13, 2021
1 parent 61e3be0 commit 70fdf0b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cli/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,7 @@ async function determineIOSWebDirAbs(

const m = pbxproj.match(re);

if (m === null) {
fatal(`Unrecognized structure in ${c.strong(pbxprojPath)}`);
}

const [, sourceTree] = m;

if (sourceTree === 'SOURCE_ROOT') {
if (m && m[1] === 'SOURCE_ROOT') {
logger.warn(
`Using the iOS project root for the ${c.strong(
'public',
Expand Down

0 comments on commit 70fdf0b

Please sign in to comment.