anchor.diff:      File output = new File(path.join(to.path, path.basename(from.path)));
       String code = output.readAsStringSync();
   
  -    code = code.replaceAll(
  +    code = code.replaceFirst(
         new RegExp("import 'package:js_wrapping_generator/dart_generator.dart';\n"),
         ''
       );
   
  +    if (Platform.isWindows) {
  +      code = code.replaceAll(
  +          new RegExp('\n'),
  +          '\r\n'
  +      );
  +    }
  +
       output.writeAsStringSync(code);
  +    print('Generated file: ${output.path}');
     }
   }
  -
  
positive.code: import 'dart:io';
  
  import 'package:js_wrapping_generator/dart_generator.dart';
  import 'package:path/path.dart' as path;
  
  void main(List<String> args) {
    bool clean = true;
  
    Directory base = new File.fromUri(Platform.script).parent.parent;
  
negative.code:   Generator _generator = new CustomGenerator('${base.path}/packages');
  
    template
      .list()
      .where((fse) => fse is File)
      .map((file) {
        print('Parsing file: ${file.path}');
        return new Future.microtask(() {
          _generator.transformFile(file, file, target);
        });
      })
      .toList()
      .then((List<Future> futures) => Future.wait(futures))
      .then((_) {
        print('File generation complete. Elapsed time: ${stopwatch.elapsed}');
      });
  }
  
  