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 esbuild = require('esbuild');
|
||||||
|
const { existsSync } = require('fs');
|
||||||
const { rm } = require('fs/promises');
|
const { rm } = require('fs/promises');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const watch = process.argv[2] === '--watch';
|
const watch = process.argv[2] === '--watch';
|
||||||
|
|
||||||
|
if (existsSync('./dist')) {
|
||||||
await rm('./dist', { recursive: true });
|
await rm('./dist', { recursive: true });
|
||||||
|
}
|
||||||
|
|
||||||
await esbuild.build({
|
await esbuild.build({
|
||||||
tsconfig: 'tsconfig.json',
|
tsconfig: 'tsconfig.json',
|
||||||
|
|
Loading…
Reference in a new issue