Skip to content

Commit

Permalink
chore: ensure generated dir is emptied
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 20, 2024
1 parent 1e65061 commit 3be1fcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/compare.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import fs from 'node:fs'
import path from 'node:path'
import { generate } from '../src'

console.log('Generating output for reviewal...', path.join(__dirname, '..'))

// delete the generated directory
fs.rmdirSync(path.join(__dirname, '..', 'fixtures/generated'), { recursive: true })

generate({
cwd: path.join(__dirname, '..'),
root: path.join(__dirname, '..', 'fixtures/input'),
Expand Down

0 comments on commit 3be1fcf

Please sign in to comment.