Skip to content

Commit

Permalink
Merge pull request facebook#1780 from jbrantly/issue-1292
Browse files Browse the repository at this point in the history
Fixing grunt jsx task in Windows
  • Loading branch information
zpao committed Jul 3, 2014
2 parents 7a27d43 + 9e60afd commit 12479d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grunt/tasks/jsx.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

var path = require("path");
var grunt = require("grunt");
var expand = grunt.file.expand;
var spawn = grunt.util.spawn;
Expand Down Expand Up @@ -27,8 +28,8 @@ module.exports = function() {
args.push("--config" /* from stdin */);

var child = spawn({
cmd: "bin/jsx-internal",
args: args
cmd: "node",
args: [path.join("bin", "jsx-internal")].concat(args)
}, function(error, result, code) {
if (error) {
grunt.log.error(error);
Expand Down

0 comments on commit 12479d3

Please sign in to comment.