Skip to content

Commit

Permalink
fix(openapi): remove dir before build
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jan 28, 2020
1 parent 50acdef commit c1689f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openapi2aspida/src/cli/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export interface BuildIO {

export class Build implements BuildCommand {
async run(config: Config, io: BuildIO) {
const template = await build(config.input, config.isYaml)
await io.remove(config.output)
const template = await build(config.input, config.isYaml)
io.write(config.output, config.trailingSlash, template)
}
}
Expand Down

0 comments on commit c1689f4

Please sign in to comment.