From 2114f5b5adb7ef1effda0859ea7c1ffe9b7f4dfb Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Tue, 5 Jul 2022 17:02:30 -0700 Subject: [PATCH] chore(bin): mkdir if missing --- bin/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/index.js b/bin/index.js index 6c9c079..35530f9 100644 --- a/bin/index.js +++ b/bin/index.js @@ -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