Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
Add check for publish so that it doesn't add sass_options.json into t…
Browse files Browse the repository at this point in the history
…he package
  • Loading branch information
stevezhu committed Sep 4, 2014
1 parent 4af8069 commit 85be97f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: "Meteor package for using sass or scss stylesheets.",
version: "1.2.0",
version: "1.2.1",
git: "https://github.com/stevezhu/meteor-sass.git"
});

Expand Down
5 changes: 5 additions & 0 deletions plugin/compile-sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var args = Npm.require('minimist')(process.argv.slice(2))._,
command = _.first(args);
var isApp = args.length === 0;
var isTestPackages = command === 'test-packages';
var isPublishPackage = command === 'publish';

var debug = function() {
if (process.env.NODE_ENV === 'debug') {
Expand Down Expand Up @@ -245,6 +246,10 @@ Plugin.registerSourceHandlers(['sass', 'scss'], {archMatching: 'web'}, function(
*/
var INCLUDE_PATHS_FILENAME = 'sass_include_paths.json';
Plugin.registerSourceHandler(INCLUDE_PATHS_FILENAME, {archMatching: 'os'}, function(compileStep) {
if (isPublishPackage) {
return;
}

updateCompileStepPaths(compileStep);
createPackageLink(compileStep, compileStep._fullInputPath);

Expand Down

0 comments on commit 85be97f

Please sign in to comment.