chore: tsify sandboxed init (#23719)

This commit is contained in:
Samuel Attard 2020-05-30 02:56:54 -07:00 committed by GitHub
parent 9f21d09dfd
commit 236c1334e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 19 deletions

View file

@ -13,6 +13,8 @@ const allDocs = fs.readdirSync(path.resolve(__dirname, '../docs/api'))
.map(doc => `docs/api/structures/${doc}`)
);
const typingFiles = fs.readdirSync(path.resolve(__dirname, '../typings')).map(child => `typings/${child}`);
const main = async () => {
const webpackTargets = [
{
@ -70,7 +72,7 @@ const main = async () => {
// Only care about our own files
.filter(line => !line.startsWith('node_modules'))
// All webpack builds depend on the tsconfig and package json files
.concat(['tsconfig.json', 'tsconfig.electron.json', 'package.json'])
.concat(['tsconfig.json', 'tsconfig.electron.json', 'package.json', ...typingFiles])
// Make the generated list easier to read
.sort();
await fs.remove(tmpDir);