fix build dir

This commit is contained in:
Cory LaViska
2021-10-16 10:35:42 -04:00
parent 10f31efefa
commit d4741532f5

View File

@@ -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);