From 6dac0c76289ce435863f26dd12391c87d5a6b49f Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Fri, 3 Nov 2023 15:58:41 -0600 Subject: [PATCH] fix removal of files --- other/sentry-create-release.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/other/sentry-create-release.js b/other/sentry-create-release.js index 6a8e9e0b2..4a78f2408 100644 --- a/other/sentry-create-release.js +++ b/other/sentry-create-release.js @@ -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' @@ -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) }