end()

in generators/app/index.js [67:90]


  end() {
    this.config.save();
    if (this.isGuestUseCase == false) {
      //this is for Add Service
      var nodeFs = require("fs");
      if (
        nodeFs
          .statSync(path.join(this.destinationRoot(), ".yo-rc.json"))
          .isFile()
      ) {
        nodeFs
          .createReadStream(path.join(this.destinationRoot(), ".yo-rc.json"))
          .pipe(
            nodeFs.createWriteStream(
              path.join(
                this.destinationRoot(),
                this.props.projName,
                ".yo-rc.json"
              )
            )
          );
      }
    }
  }