@samitouri / QOS-React-2 / commits / da4b761c45
Fork 0

The library for web and native user interfaces.

Don't require `tmp` module unless we're going to use it.

Ben Newman committed Jul 5, 2013 at 19:17 UTC da4b761c45b1cba932dfc340818585207123a7ba
1 file changed +1 -2
grunt/tasks/npm.js
+1 -2
@@ -2,7 +2,6 @@
2
3 var assert = require("assert");
4 var path = require("path");
5 -var tmp = require("tmp");
5 var grunt = require("grunt");
6 var spawn = grunt.util.spawn;
7
@@ -48,7 +47,7 @@ module.exports = function() {
47 grunt.log.writeln("Packing " + tgz + " (this could take a while)...");
48
49 run("npm", ["pack", "--verbose", "."], function() {
51 - tmp.dir(function(err, dir) {
50 + require("tmp").dir(function(err, dir) {
51 if (err) {
52 grunt.log.error(err);
53 done(false);