Skip to content
Permalink
Browse files
fix(ConfigFile): Normalize globbed file paths (#135)
  • Loading branch information
raphinesse committed Mar 15, 2020
1 parent fed6d05 commit 406e1a22853863905176b1b31efd57686cf586c7
Showing 2 changed files with 4 additions and 2 deletions.
@@ -472,7 +472,7 @@ describe('config-changes module', function () {

var munger = new configChanges.PlatformMunger('ios', temp, platformJson, pluginInfoProvider);
munger.process(plugins_dir);
expect(spy).toHaveBeenCalledWith(path.join(temp, 'SampleApp', 'SampleApp-Info.plist').replace(/\\/g, '/'), 'utf8');
expect(spy).toHaveBeenCalledWith(path.join(temp, 'SampleApp', 'SampleApp-Info.plist'), 'utf8');
});
it('Test 026 : should move successfully installed plugins from queue to installed plugins section, and include/retain vars if applicable', function () {
fs.copySync(android_two_project, temp);
@@ -167,7 +167,9 @@ function resolveConfigFilePath (project_dir, platform, file) {

if (file.includes('*')) {
// handle wildcards in targets using glob.
matches = modules.glob.sync(path.join(project_dir, '**', file));
matches = modules.glob.sync(path.join(project_dir, '**', file))
.map(p => path.normalize(p));

if (matches.length) filepath = matches[0];

// [CB-5989] multiple Info.plist files may exist. default to $PROJECT_NAME-Info.plist

0 comments on commit 406e1a2

Please sign in to comment.