From 94cee0333500f363f2bf97ef787fceefb15f1808 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 14 Jan 2015 18:45:00 -0700 Subject: [PATCH] Provide package name for styles metadata deprecations --- src/package.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/package.coffee b/src/package.coffee index 61ec804e1..0af5c9cb6 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -44,11 +44,11 @@ class Package metadata.name = packageName if metadata.stylesheetMain? - deprecate("Use the `mainStyleSheet` key instead of `stylesheetMain` in your `package.json`", {packageName}) + deprecate("Use the `mainStyleSheet` key instead of `stylesheetMain` in the `package.json` of `#{packageName}`", {packageName}) metadata.mainStyleSheet = metadata.stylesheetMain if metadata.stylesheets? - deprecate("Use the `styleSheets` key instead of `stylesheets` in your `package.json`", {packageName}) + deprecate("Use the `styleSheets` key instead of `stylesheets` in the `package.json` of `#{packageName}`", {packageName}) metadata.styleSheets = metadata.stylesheets metadata @@ -241,7 +241,7 @@ class Package getStylesheetsPath: -> if fs.isDirectorySync(path.join(@path, 'stylesheets')) - deprecate("Store package style sheets in the `styles/` directory instead of `stylesheets/`", packageName: @name) + deprecate("Store package style sheets in the `styles/` directory instead of `stylesheets/` in the `#{@name}` package", packageName: @name) path.join(@path, 'stylesheets') else path.join(@path, 'styles')