Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zce committed Nov 12, 2023
1 parent 490175c commit 621b2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const build = async (options: Options) => {
collections.map(async ([name, data]) => {
const output = JSON.stringify(data, null, 2)
await writeFile(join(config.output.data, name + '.json'), output)
console.log(`wrote ${data.length} ${name} to '${join(config.output.data, name + '.json')}'`)
console.log(`wrote ${data.length ?? 1} ${name} to '${join(config.output.data, name + '.json')}'`)
})
)
}

0 comments on commit 621b2cd

Please sign in to comment.