Upgrade/remove outdated dependencies

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-11-13 19:56:28 -06:00 committed by GitHub
parent d177b2a8a0
commit f68756084a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 3511 additions and 8360 deletions

View file

@ -0,0 +1,36 @@
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
const fastGlob = require('fast-glob');
const { rm } = require('node:fs/promises');
const { join } = require('node:path');
const repoRoot = join(__dirname, '..');
const PATTERNS = [
'sticker-creator/dist',
'app/**/*.js',
'app/*.js',
'ts/**/*.js',
'bundles',
'tsconfig.tsbuildinfo',
'preload.bundle.js',
'preload.bundle.cache',
];
async function main() {
const readable = fastGlob.stream(PATTERNS, {
cwd: repoRoot,
});
const promises = [];
for await (const entry of readable) {
promises.push(rm(entry, { recursive: true, force: true }));
}
await Promise.all(promises);
}
main().catch(error => {
console.error(error);
process.exit(1);
});