Skip to content

Commit

Permalink
fix: file exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 19, 2023
1 parent 460f2e4 commit 94ca767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export default class Plugins {
}

private async createPJSON() {
if (await fileExists(this.pjsonPath)) {
if (!(await fileExists(this.pjsonPath))) {
this.debug(`creating ${this.pjsonPath} with pjson: ${JSON.stringify(initPJSON, null, 2)}`)
await this.savePJSON(initPJSON)
}
Expand Down

0 comments on commit 94ca767

Please sign in to comment.