From b83a3432327f6e0d628884314cea87878b4cdf91 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Wed, 8 May 2019 16:04:06 -0400 Subject: [PATCH] Avoid removing vital build/ directory in prepublish script. I'm sure this isn't the best way to fix this problem, but without it the pathwatcher package gets installed without a build/Release directory, which makes the package totally unusable. The unnecessary cleaning happens because the prepublish script always runs after npm install. Very open to any other ways of preserving the build/ directory! --- Gruntfile.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 1177aa8..ed9c3a1 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -69,7 +69,7 @@ module.exports = (grunt) -> grunt.registerTask('lint', ['coffeelint', 'cpplint']) grunt.registerTask('default', ['coffee', 'lint', 'shell:rebuild']) grunt.registerTask('test', ['default', 'shell:test']) - grunt.registerTask('prepublish', ['clean', 'coffee', 'lint', 'shell:update-atomdoc', 'atomdoc']) + grunt.registerTask('prepublish', ['coffee', 'lint', 'shell:update-atomdoc', 'atomdoc']) grunt.registerTask 'clean', -> rm = require('rimraf').sync rm 'build'