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

fix(config): use basename to avoid mixed path separators from glob #2319

Merged
merged 1 commit into from
Jul 2, 2020
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
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