diff --git a/Gruntfile.js b/Gruntfile.js
index <HASH>..<HASH> 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -161,6 +161,7 @@ module.exports = function(grunt) {
     grunt.registerTask("default", ["newer:copy:build", "mkdir:build",
                                    "newer:shell:regexp",
                                    "newer:fix_jison:regexp",
+                                   "npmignore",
                                    "chmod"]);
 
     grunt.registerMultiTask("fix_jison", function () {
@@ -180,6 +181,12 @@ module.exports = function(grunt) {
         return undefined;
     });
 
+    grunt.registerTask("npmignore", function () {
+        var data = "bin/parse.js";
+        fs.writeFileSync("build/dist/.npmignore", data);
+    });
+
+
     grunt.registerTask("copy_jsdoc_template",
                        ["copy:jsdoc_template_defaults",
                         "copy:publish_js", "copy:layout_tmpl",
Added the npmignore task.