Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix null ref when walking packages. #280

Merged
merged 1 commit into from
Jul 20, 2018
Merged

Fix null ref when walking packages. #280

merged 1 commit into from
Jul 20, 2018

Conversation

CyrusNajmabadi
Copy link
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from lukehoban July 20, 2018 20:25
@@ -288,8 +288,10 @@ function allFoldersForPackages(includedPackages: Set<string>, excludedPackages:
// .devDependencies or or .peerDependencies. These are not what are considered part of
// the final runtime configuration of the app and should not be uploaded.
const referencedPackages = new Set<string>(includedPackages);
for (const depName of Object.keys(root.package.dependencies)) {
referencedPackages.add(depName);
if (root.package && root.package.dependencies) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't know if .package can ever be null itself. but i'm being paranoid here just in case.

Copy link
Member

@pgavlin pgavlin left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants