chore: tsify sandboxed init (#23719)
This commit is contained in:
parent
9f21d09dfd
commit
236c1334e3
4 changed files with 32 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue