From 5011e629b1f0d5c6ad0009ddc3439a459a4726a4 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 23 Feb 2018 11:08:11 -0800 Subject: [PATCH] Build addons by scanning addon dir --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 4353e46d..af4fdce0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -23,7 +23,7 @@ const tsProject = ts.createProject('tsconfig.json'); const srcDir = tsProject.config.compilerOptions.rootDir; let outDir = tsProject.config.compilerOptions.outDir; -const addons = ['attach', 'fit', 'fullscreen', 'search', 'terminado', 'winptyCompat', 'zmodem']; +const addons = fs.readdirSync(`${__dirname}/src/addons`); // Under some environments like TravisCI, this comes out at absolute which can // break the build. This ensures that the outDir is absolute.