1
0
Преглед на файлове

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

replace:
path.existsSync -> fs.existsSync
Manfred Kroehnert преди 12 години
родител
ревизия
4f1c85e3a2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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));
       }