From 6e7fb0ccba2367ff15151da1dddc6377e140d3f3 Mon Sep 17 00:00:00 2001 From: Sid Vishnoi <8426945+sidvishnoi@users.noreply.github.com> Date: Mon, 20 Sep 2021 15:17:58 +0530 Subject: [PATCH] fix(validate/webidl): remove stray .cache dir (#106) --- src/validate-webidl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/validate-webidl.ts b/src/validate-webidl.ts index c90fbfa..caa9131 100644 --- a/src/validate-webidl.ts +++ b/src/validate-webidl.ts @@ -1,3 +1,4 @@ +import { rm } from "fs/promises"; import { env, exit, install, yesOrNo } from "./utils.js"; import { BuildResult } from "./build.js"; type Input = Pick; @@ -21,6 +22,7 @@ export default async function main({ dest, file }: Input) { [{ url: fileurl, nightly: { url: fileurl } }], { modules: ["idl"] }, ); + await rm(".cache", { recursive: true, force: true }); const idl = results[0]?.idl?.idl; if (!idl) {