old_contents: var fs = require("fs");
  var grunt = require("grunt");
  
  var callback = function(err) {};
  
  grunt.cli.tasks = ["ts:devlib"];
  grunt.cli(null, callback);
  
new_contents: var fs = require("fs"),
  	path = require("path"),
  	grunt = require("grunt");
  
  var pathToTypeScriptEntryPoint = path.join(__dirname, "lib", "ios-sim.ts");
  if (fs.existsSync(pathToTypeScriptEntryPoint)) {
  	var callback = function(err) {};
  
  	grunt.cli.tasks = ["ts:devlib"];
  	grunt.cli(null, callback);
  }
  
subject: Fix prepublish script