mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Only use package directory name as fallback
Fixes https://github.com/atom/atom/issues/7174
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user