Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-core): add spaces when write db.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jan 21, 2019
1 parent 1c7c9f7 commit 3a84af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/docz-core/src/lib/DataServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ export class DataServer {
}

private async updateStateFile(): Promise<void> {
await fs.outputJSON(paths.db, this.state)
await fs.outputJSON(paths.db, this.state, { spaces: 2 })
}
}
1 change: 1 addition & 0 deletions core/docz-core/src/states/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const state = (entries: Entries, config: Config): State => {
const files = Array.isArray(config.files)
? config.files.map(filePath => path.join(src, filePath))
: path.join(src, config.files)

const watcher = chokidar.watch(files, {
cwd: paths.root,
ignored: /(((^|[\/\\])\..+)|(node_modules))/,
Expand Down

0 comments on commit 3a84af3

Please sign in to comment.