This commit is contained in:
Machiste Quintana
2015-06-08 21:14:11 -04:00
parent 659ddb67ad
commit d78bc3f234

View File

@@ -44,8 +44,7 @@ class Package
catch error
throw error unless ignoreErrors
else
metadata ?= {}
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})