Norm
8f782f8ce5
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
This makes it a bit easier to add any new files that may need to be cleaned up in the future. Also allows us to use top-level await for the `yarn dev` task. Co-authored-by: Francis Dinh <normandy@biribiri.dev> Reviewed-on: #290
19 lines
427 B
JavaScript
19 lines
427 B
JavaScript
import { rmSync } from 'fs';
|
|
import { __dirname } from './common.mjs';
|
|
|
|
export const files = [
|
|
'/../packages/backend/built',
|
|
'/../packages/backend/tsconfig.tsbuildinfo',
|
|
'/../packages/client/built',
|
|
'/../packages/foundkey-js/built',
|
|
'/../packages/sw/built',
|
|
'/../built',
|
|
];
|
|
|
|
export function clean(filename) {
|
|
rmSync(__dirname + filename, { recursive: true, force: true });
|
|
}
|
|
|
|
for (const file of files) {
|
|
clean(file);
|
|
}
|