grunt-contrib-watch
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "grunt-contrib-watch", | ||
"description": "Run predefined tasks whenever watched file patterns are added, changed or deleted.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-watch", | ||
@@ -31,3 +31,3 @@ "author": { | ||
"dependencies": { | ||
"gaze": "~0.1.5" | ||
"gaze": "~0.1.6" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
@@ -20,3 +20,10 @@ /* | ||
var gruntBin = path.resolve(process.cwd(), 'node_modules', '.bin', 'grunt'); | ||
if (!grunt.file.exists(gruntBin)) { | ||
// Use the globally installed grunt | ||
gruntBin = path.resolve(path.dirname(process.execPath), 'grunt'); | ||
} | ||
if (process.platform === 'win32') { gruntBin += '.cmd'; } | ||
if (!grunt.file.exists(gruntBin)) { | ||
grunt.fatal('The Grunt binary could not be found. Please install grunt first with: npm install grunt'); | ||
} | ||
@@ -42,4 +49,2 @@ grunt.registerTask('watch', 'Run predefined tasks whenever watched files change.', function(target) { | ||
// Get a list of files to be watched | ||
var patterns = grunt.util._.chain(targets).pluck('files').flatten().uniq().value(); | ||
// Message to display when waiting for changes | ||
@@ -46,0 +51,0 @@ var waiting = 'Waiting...'; |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
16269
17
312
2
Updatedgaze@~0.1.6