Skip to content

Commit

Permalink
fix grunt build
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsanjose committed Feb 26, 2015
1 parent 0f14977 commit a9d4b56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ module.exports = function (grunt) {
'node/*/SASSDomain.js',
'!node/*/node_modules/node-sass-binaries/**',
'node/*/node_modules/fs-extra/**',
'node/*/node_modules/node-sass/{package.json,sass.js,binding.gyp}',
'node/*/node_modules/node-sass/bin/**',
'node/*/node_modules/node-sass/node_modules/object-assign/**'
'node/*/node_modules/node-sass/{package.json,binding.gyp}',
'node/*/node_modules/node-sass/bin/node-sass',
'node/*/node_modules/node-sass/node_modules/semver/**',
'node/*/node_modules/node-sass/lib/**',
'node/*/node_modules/node-sass/vendor/**'
]
}
]
Expand Down
13 changes: 9 additions & 4 deletions node/2.0.1/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@

"use strict";

process.on("uncaughtException", function (error) {
process.send({ error: error.stack || error.message || error });
});

// HACK make process.sassBinaryName read only
Object.defineProperty(process, "sassBinaryName", {
value: process.platform + "-ia32-node-0.10"
});

var cp = require("child_process"),
path = require("path"),
fs = require("fs-extra"),
Expand Down Expand Up @@ -176,8 +185,4 @@ process.on("message", function (message) {

process.on("exit", function (code) {
process.send({ exitcode: code });
});

process.on("uncaughtException", function (error) {
process.send({ error: error.stack || error.message || error });
});

0 comments on commit a9d4b56

Please sign in to comment.