Skip to content

Commit

Permalink
fix: don't format on memfs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Dec 5, 2022
1 parent 658433f commit ebe9d01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/generators/cli.ts
@@ -1,5 +1,5 @@
import {execSync} from 'child_process'
import * as fs from 'fs'
import * as fs from 'fs-extra'
import * as _ from 'lodash'
import * as path from 'path'
import * as Generator from 'yeoman-generator'
Expand Down Expand Up @@ -218,7 +218,7 @@ export default class CLI extends Generator {

if (_.isEmpty(this.pjson.oclif)) delete this.pjson.oclif
this.pjson.files = _.uniq((this.pjson.files || []).sort())
this.fs.writeJSON(this.destinationPath('./package.json'), this.pjson, {spaces: 2})
this.fs.writeJSON(this.destinationPath('./package.json'), this.pjson)

this.fs.write(this.destinationPath('.gitignore'), this._gitignore())
}
Expand Down
2 changes: 1 addition & 1 deletion src/generators/hook.ts
Expand Up @@ -46,6 +46,6 @@ export default class Hook extends Generator {
this.pjson.oclif.hooks[this.options.event] = p
}

this.fs.writeJSON(this.destinationPath('./package.json'), this.pjson, {spaces: 2})
this.fs.writeJSON(this.destinationPath('./package.json'), this.pjson)
}
}

0 comments on commit ebe9d01

Please sign in to comment.