Don't reassign metadata.name

This commit is contained in:
Machiste Quintana
2015-06-08 21:18:21 -04:00
parent d78bc3f234
commit 07da68c95e

View File

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