Explorar el Código

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

replace:
path.existsSync -> fs.existsSync
Manfred Kroehnert hace 12 años
padre
commit
4f1c85e3a2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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));
       }