Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
fix(config): use basename to avoid mixed path separators from glob (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric authored Jul 2, 2020
1 parent 285977a commit 0fe060d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/config/src/ios/utils/Xcodeproj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import path from 'path';

export function getProjectName(projectRoot: string) {
const sourceRoot = getSourceRoot(projectRoot);
const sourceRootParts = sourceRoot.split(path.sep);
return sourceRootParts[sourceRootParts.length - 1];
return path.basename(sourceRoot);
}

export function getSourceRoot(projectRoot: string) {
Expand Down

0 comments on commit 0fe060d

Please sign in to comment.