fix(actions): maybe fix actions

This commit is contained in:
diced 2022-03-13 19:30:37 -07:00
parent 0922ec020e
commit 740f1605e7
No known key found for this signature in database
GPG key ID: 85AB64C74535D76E

View file

@ -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',