From 740f1605e70399ec130fe7e3eefe433166f87ff1 Mon Sep 17 00:00:00 2001 From: diced Date: Sun, 13 Mar 2022 19:30:37 -0700 Subject: [PATCH] fix(actions): maybe fix actions --- esbuild.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esbuild.config.js b/esbuild.config.js index 8fb668f..2c741f3 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -1,10 +1,13 @@ const esbuild = require('esbuild'); +const { existsSync } = require('fs'); const { rm } = require('fs/promises'); (async () => { const watch = process.argv[2] === '--watch'; - await rm('./dist', { recursive: true }); + if (existsSync('./dist')) { + await rm('./dist', { recursive: true }); + } await esbuild.build({ tsconfig: 'tsconfig.json',