anchor.diff:    copy(new File('LICENSE'), dir);
     copy(new File('3RD_PARTY'), dir);
     copy(new File(p.join('docs', 'validation.schema.json')), dir);
  -
  +}
  +
  +@Depends(issues, npmRelease)
  +@Task('Build an npm package.')
  +void npm() {
     log("Trying to generate npm docs...");
     run(npmExecutable, arguments: ['install'], workingDirectory: 'build/npm');
     run(npmExecutable, arguments: ['run', 'docs'], workingDirectory: 'build/npm');
  
positive.code:   '--trust-type-annotations'
  ];
  
  @Depends(issues)
  @Task('Build non-minified npm package with source map.')
  void npmDebug() {
    _dart2jsArgs
      ..clear()
      ..add('-DGLTF_VALIDATOR_DEBUG=true');
    npm();
  }
  
  @Depends(issues)
  @Task('Build an npm package.')
  void npm() {
    _ensureBuild();
    final destDir = 'build/npm/';
    final sourceDir = 'tool/npm_template';
  
negative.code:   const kDetector =
        "let _isNode=false;try{_isNode=Object.prototype.toString.call(global.process)==='[object process]'}catch(_){}";
    final preambleJs =
        '${kDetector}if(_isNode){${preamble.getPreamble(minified: true)}}else{var self=global.self;self.exports=exports}';
  
    destination.writeAsStringSync('$preambleJs\n$compiledJs');
  
  