Skip to content

Commit

Permalink
fix removal of files
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Nov 3, 2023
1 parent 7d135a3 commit 6dac0c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions other/sentry-create-release.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'node:fs'
import { createRelease } from '@sentry/remix/scripts/createRelease.js'
import fsExtra from 'fs-extra'
import { glob } from 'glob'
import 'dotenv/config'

Expand All @@ -21,5 +21,6 @@ if (
}
const files = await glob(['./public/**/*.map', './build/**/*.map'])
for (const file of files) {
await fsExtra.remove(file)
// remove file
await fs.promises.unlink(file)
}

0 comments on commit 6dac0c7

Please sign in to comment.