Procházet zdrojové kódy

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

replace:
path.existsSync -> fs.existsSync
Manfred Kroehnert před 12 roky
rodič
revize
4f1c85e3a2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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));
       }