From b18249655146f0dd430bda415bed9e56ec196e11 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Mon, 10 Apr 2023 17:20:36 +0200 Subject: [PATCH] chore: switch to rimraf --- package.json | 3 ++- scripts/clean.mjs | 5 ----- yarn.lock | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 6 deletions(-) delete mode 100644 scripts/clean.mjs diff --git a/package.json b/package.json index f49e0eab..d44c74fd 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "docs": "typedoc-json-parser", "test": "vitest run", "build": "tsup", - "clean": "node scripts/clean.mjs", + "clean": "rimraf dist", "typecheck": "tsc -p tsconfig.eslint.json", "bump": "cliff-jumper", "check-update": "cliff-jumper --dry-run", @@ -59,6 +59,7 @@ "pinst": "^3.0.0", "prettier": "^2.8.7", "pretty-quick": "^3.1.3", + "rimraf": "^5.0.0", "tsup": "^6.7.0", "typedoc": "0.23.28", "typedoc-json-parser": "^7.2.0", diff --git a/scripts/clean.mjs b/scripts/clean.mjs deleted file mode 100644 index 1256bdbf..00000000 --- a/scripts/clean.mjs +++ /dev/null @@ -1,5 +0,0 @@ -import { rm } from 'node:fs/promises'; - -const distDir = new URL('../dist/', import.meta.url); - -await rm(distDir, { recursive: true, force: true }); diff --git a/yarn.lock b/yarn.lock index b3acac29..183f861d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -745,6 +745,7 @@ __metadata: pinst: ^3.0.0 prettier: ^2.8.7 pretty-quick: ^3.1.3 + rimraf: ^5.0.0 tsup: ^6.7.0 typedoc: 0.23.28 typedoc-json-parser: ^7.2.0 @@ -3298,6 +3299,18 @@ __metadata: languageName: node linkType: hard +"glob@npm:^10.0.0": + version: 10.0.0 + resolution: "glob@npm:10.0.0" + dependencies: + fs.realpath: ^1.0.0 + minimatch: ^9.0.0 + minipass: ^5.0.0 + path-scurry: ^1.6.4 + checksum: 3852a6b847106c431d87fb3e8cccb6cfc4449de3ab5d0216c44d4e2da2616df220058050d16811c42f0c2148ad8981da828227ae5c5ab798091ef27c903429f6 + languageName: node + linkType: hard + "glob@npm:^8.0.1": version: 8.1.0 resolution: "glob@npm:8.1.0" @@ -4230,6 +4243,13 @@ __metadata: languageName: node linkType: hard +"lru-cache@npm:^9.0.0": + version: 9.0.0 + resolution: "lru-cache@npm:9.0.0" + checksum: d90173404f4f2b48d238c361eaa5ff302507b9be65beb71282147e18a50d4b521361df99d7ded199b6c2e6451078c417d64d9d649e466f2bed8b5de2795cbbb6 + languageName: node + linkType: hard + "lunr@npm:^2.3.9": version: 2.3.9 resolution: "lunr@npm:2.3.9" @@ -4447,6 +4467,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^9.0.0": + version: 9.0.0 + resolution: "minimatch@npm:9.0.0" + dependencies: + brace-expansion: ^2.0.1 + checksum: 7bd57899edd1d1b0560f50b5b2d1ea4ad2a366c5a2c8e0a943372cf2f200b64c256bae45a87a80915adbce27fa36526264296ace0da57b600481fe5ea3e372e5 + languageName: node + linkType: hard + "minimist-options@npm:4.1.0": version: 4.1.0 resolution: "minimist-options@npm:4.1.0" @@ -4559,6 +4588,13 @@ __metadata: languageName: node linkType: hard +"minipass@npm:^5.0.0": + version: 5.0.0 + resolution: "minipass@npm:5.0.0" + checksum: 425dab288738853fded43da3314a0b5c035844d6f3097a8e3b5b29b328da8f3c1af6fc70618b32c29ff906284cf6406b6841376f21caaadd0793c1d5a6a620ea + languageName: node + linkType: hard + "minizlib@npm:^2.1.1, minizlib@npm:^2.1.2": version: 2.1.2 resolution: "minizlib@npm:2.1.2" @@ -5059,6 +5095,16 @@ __metadata: languageName: node linkType: hard +"path-scurry@npm:^1.6.4": + version: 1.6.4 + resolution: "path-scurry@npm:1.6.4" + dependencies: + lru-cache: ^9.0.0 + minipass: ^5.0.0 + checksum: bd5262b51dc35b0d6f0b1d4fa4445789839982bd649904f18fe43717ecc3021d2313a80768b56cd0428f5ca50d740a6c609e747cd6a053efaa802e07eb5b7b18 + languageName: node + linkType: hard + "path-type@npm:^4.0.0": version: 4.0.0 resolution: "path-type@npm:4.0.0" @@ -5478,6 +5524,17 @@ __metadata: languageName: node linkType: hard +"rimraf@npm:^5.0.0": + version: 5.0.0 + resolution: "rimraf@npm:5.0.0" + dependencies: + glob: ^10.0.0 + bin: + rimraf: dist/cjs/src/bin.js + checksum: 60c5a7f152014d4f6bbf23f48e6badd145960a9be1115b719a07ba688c760b1bb8270abd6650bbd184ae2011843d8e9c775409652c89ff97550418aa5d581b27 + languageName: node + linkType: hard + "rollup@npm:^2.75.7": version: 2.79.1 resolution: "rollup@npm:2.79.1"