From 7e13db55bfa0c0a64d807f4f18a2f3c5c7c72a1c Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 9 Jan 2023 20:12:31 +0100 Subject: [PATCH] use join over hard-coded `/` --- code/lib/builder-manager/src/utils/managerEntries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/builder-manager/src/utils/managerEntries.ts b/code/lib/builder-manager/src/utils/managerEntries.ts index c5067b9744e2..264aa81366fb 100644 --- a/code/lib/builder-manager/src/utils/managerEntries.ts +++ b/code/lib/builder-manager/src/utils/managerEntries.ts @@ -42,7 +42,7 @@ export async function wrapManagerEntries(entrypoints: string[]) { const base = relative(process.cwd(), dir); const location = join( cacheLocation, - sanitizeFinal(`${sanitizeBase(base)}-${i}/${sanitizeBase(name)}-bundle.mjs`) + sanitizeFinal(join(`${sanitizeBase(base)}-${i}`, `${sanitizeBase(name)}-bundle.mjs`)) ); await fs.ensureFile(location);