Skip to content

Commit fa9f42b

Browse files
Require grunt in prepublish script only if we have to
1 parent 36efdc4 commit fa9f42b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prepublish.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
var fs = require("fs"),
2-
path = require("path"),
3-
grunt = require("grunt");
2+
path = require("path");
43

54
var pathToTypeScriptEntryPoint = path.join(__dirname, "lib", "ios-sim.ts");
65
if (fs.existsSync(pathToTypeScriptEntryPoint)) {
7-
var callback = function(err) {};
6+
var callback = function(err) {},
7+
grunt = require("grunt");
88

99
grunt.cli.tasks = ["ts:devlib"];
1010
grunt.cli(null, callback);

0 commit comments

Comments
 (0)