mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Only use package directory name as fallback
Fixes https://github.com/atom/atom/issues/7174
This commit is contained in:
parent
c06d62e607
commit
0f876a73cc
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user