Explorar o código

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

replace:
path.existsSync -> fs.existsSync
Manfred Kroehnert %!s(int64=12) %!d(string=hai) anos
pai
achega
4f1c85e3a2
Modificáronse 1 ficheiros con 1 adicións e 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));
       }