From d4741532f54dcd3ece6e021b77815f8a0416e9fe Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Sat, 16 Oct 2021 10:35:42 -0400 Subject: [PATCH] fix build dir --- scripts/build.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index d0246028..b3662ffb 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -22,9 +22,7 @@ const { bundle, dir, serve, types } = commandLineArgs([ { name: 'types', type: Boolean } ]); -const __dirname = new URL('.', import.meta.url).pathname; -const rootDir = path.dirname(__dirname); -const outdir = path.relative(rootDir, dir); +const outdir = dir; del.sync(outdir); mkdirp.sync(outdir);