Skip to content

Commit

Permalink
Avoid removing vital build/ directory in prepublish script.
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
benjamn committed May 8, 2019
1 parent 9c889df commit b83a343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b83a343

Please sign in to comment.