Only use package directory name as fallback

Fixes https://github.com/atom/atom/issues/7174
This commit is contained in:
Machiste Quintana 2015-06-08 20:45:41 -04:00
parent c06d62e607
commit 0f876a73cc

View File

@ -43,9 +43,9 @@ class Package
@normalizeMetadata(metadata)
catch error
throw error unless ignoreErrors
metadata ?= {}
metadata.name = packageName
else
metadata ?= {}
metadata.name = packageName
if includeDeprecatedAPIs and metadata.stylesheetMain?
deprecate("Use the `mainStyleSheet` key instead of `stylesheetMain` in the `package.json` of `#{packageName}`", {packageName})