tools/isobuild/builder.js
// directories when symlinks are involved.
directories when symlinks are involved.
directories when symlinks are involved .
copyNodeModulesDirectory(options) {
    assert.strictEqual(files.pathBasename(options.to), "node_modules");
    if (options.symlink) {
      this._ensureAllNonPackageDirectories(
        files.realpath(options.from),
        options.to
      );
    }
    return this._copyDirectory(options);
  }
copyNodeModulesDirectory ( options ) { assert . strictEqual ( files . pathBasename ( options . to ) , "node_modules" ) ; if ( options . symlink ) { this . _ensureAllNonPackageDirectories ( files . realpath ( options . from ) , options . to ) ; } return this . _copyDirectory ( options ) ; }
directories when symlinks are involved.
directories when symlinks are involved .
// Although the options.from directory should probably be a // node_modules directory, the only essential precondition here is // that the destination directory is a node_modules directory. // assert.strictEqual(files.pathBasename(options.from), "node_modules"); // If we're going to use symlinks to speed up this copy, then we // need to make sure we've reserved all directories that are not // package directories, such as the node_modules directory itself, // as well as node_modules/meteor and the parent directories of any // scoped npm packages. // Call this._copyDirectory rather than this.copyDirectory so that the // subBuilder hacks from Builder#enter won't apply a second time.