Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Fix bug: Search path for Library Manager is incomplete #166

Merged
merged 4 commits into from
Mar 20, 2017

Conversation

testforstephen
Copy link
Contributor

#160 Library Manager search is incomplete

@akaroml @adashen @andxu @Eskibear @jdneo @yaohaizh

@msftclas
Copy link

@testforstephen,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@@ -51,6 +51,24 @@ export function directoryExistsSync(dirPath: string): boolean {
}
}

/**
* This function will implement same function as fs.readdirSync,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar:
Add "the" before same and fs.readdireSync. Should be "filter out"

// If lib src folder doesn't exist, then fallback to the lib root path as source folder.
sourceLib.srcPath = util.directoryExistsSync(sourceLib.srcPath) ? sourceLib.srcPath : path.join(libRoot, libDir);
const formattedName = properties.name.replace(/\s+/g, "_");
let sourceLib = this._libraryMap.get(formattedName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we factor out the common code pieces for add sourceLib object?

@testforstephen testforstephen merged commit 8aafc87 into master Mar 20, 2017
@testforstephen testforstephen deleted the jinbo_dev branch March 20, 2017 03:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants