async writePackageJson() {
    const packageJson = sortPackageJson(this.packageJson);
    const json = beautify(packageJson, null, 2, this.pretty);
    await fs.writeFilePlease(path.resolve(this.root, 'package.json'), json);
  }
/**
   * Writes {@link Package#packageJson} to it's respective package.json file.
   */
Writes  Package#packageJson to it's respective package.json file.
Writes Package#packageJson to it ' s respective package . json file .
async writePackageJson() {
    const packageJson = sortPackageJson(this.packageJson);
    const json = beautify(packageJson, null, 2, this.pretty);
    await fs.writeFilePlease(path.resolve(this.root, 'package.json'), json);
  }
async writePackageJson ( ) { const packageJson = sortPackageJson ( this . packageJson ) ; const json = beautify ( packageJson , null , 2 , this . pretty ) ; await fs . writeFilePlease ( path . resolve ( this . root , 'package.json' ) , json ) ; }
Writes {@link Package#packageJson} to it's respective package.json file.
Writes { @link Package#packageJson } to it ' s respective package . json file .