diff --git a/lib/data-package.ts b/lib/data-package.ts index 4136220..87347ae 100644 --- a/lib/data-package.ts +++ b/lib/data-package.ts @@ -1,6 +1,5 @@ import { createHash } from 'node:crypto'; import { pipeline } from 'stream/promises'; -import { rimraf } from 'rimraf' import type { Static } from '@sinclair/typebox' import { Type } from '@sinclair/typebox' import Err from '@openaddresses/batch-error'; @@ -564,7 +563,7 @@ export class DataPackage { * Destory the underlying FS resources and prevent further mutation */ async destroy(): Promise { - await rimraf(this.path); + await fsp.rm(this.path, { recursive: true, force: true }); this.destroyed = true; } diff --git a/package.json b/package.json index 1b35108..78d30f6 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "milsymbol": "^3.0.2", "node-stream-zip": "^1.15.0", "protobufjs": "^8.0.0", - "rimraf": "^6.0.0", "uuid": "^14.0.0", "xml-js": "^1.6.11" },