Skip to content

Commit

Permalink
chore(bin): mkdir if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jul 6, 2022
1 parent 3712966 commit 2114f5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const zlib = require('zlib');
const { minify } = require('terser');
const pkg = require('../package.json');

if (!fs.existsSync('dist')) fs.mkdirSync('dist');

/**
* @param {string} file
* @param {string} source
Expand Down

0 comments on commit 2114f5b

Please sign in to comment.