Skip to content

Commit

Permalink
fix build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Oct 16, 2021
1 parent 10f31ef commit d474153
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d474153

Please sign in to comment.