Upgrade/remove outdated dependencies
Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
parent
d177b2a8a0
commit
f68756084a
21 changed files with 3511 additions and 8360 deletions
36
scripts/clean-transpile.js
Normal file
36
scripts/clean-transpile.js
Normal 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);
|
||||
});
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
const esbuild = require('esbuild');
|
||||
const path = require('path');
|
||||
const glob = require('glob');
|
||||
const fastGlob = require('fast-glob');
|
||||
|
||||
const ROOT_DIR = path.join(__dirname, '..');
|
||||
const BUNDLES_DIR = 'bundles';
|
||||
|
@ -106,10 +106,10 @@ async function main() {
|
|||
mainFields: ['browser', 'main'],
|
||||
entryPoints: [
|
||||
'preload.wrapper.ts',
|
||||
...glob
|
||||
...fastGlob
|
||||
.sync('{app,ts}/**/*.{ts,tsx}', {
|
||||
nodir: true,
|
||||
root: ROOT_DIR,
|
||||
onlyFiles: true,
|
||||
cwd: ROOT_DIR,
|
||||
})
|
||||
.filter(file => !file.endsWith('.d.ts')),
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue