Browse Source

amberc-grunt.js: make Node.js 0.8 compatible

replace:
path.existsSync -> fs.existsSync
Manfred Kroehnert 12 years ago
parent
commit
4f1c85e3a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      grunt/tasks/amberc-grunt.js

+ 1 - 1
grunt/tasks/amberc-grunt.js

@@ -136,7 +136,7 @@ module.exports = function(grunt) {
     });
 
     compiledFiles.forEach(function(file) {
-      if (path.existsSync(file)) {
+      if (fs.existsSync(file)) {
         console.log('Move: ' + file + ' -> ' + path.join(target_dir, file));
         fs.renameSync(file, path.join(target_dir, file));
       }