fix(actions): maybe fix actions
This commit is contained in:
parent
0922ec020e
commit
740f1605e7
1 changed files with 4 additions and 1 deletions
|
@ -1,10 +1,13 @@
|
|||
const esbuild = require('esbuild');
|
||||
const { existsSync } = require('fs');
|
||||
const { rm } = require('fs/promises');
|
||||
|
||||
(async () => {
|
||||
const watch = process.argv[2] === '--watch';
|
||||
|
||||
if (existsSync('./dist')) {
|
||||
await rm('./dist', { recursive: true });
|
||||
}
|
||||
|
||||
await esbuild.build({
|
||||
tsconfig: 'tsconfig.json',
|
||||
|
|
Loading…
Reference in a new issue