@@ -39,7 +39,7 @@ const getElectronVersion = require('./lib/electron').getElectronVersion;
3939const createAsar = require ( './lib/asar' ) . createAsar ;
4040
4141const productionDependencies = deps . getProductionDependencies ( path . dirname ( __dirname ) ) ;
42- //@ts -ignore review
42+ // @ts -ignore
4343const baseModules = Object . keys ( process . binding ( 'natives' ) ) . filter ( n => ! / ^ _ | \/ / . test ( n ) ) ;
4444const nodeModules = [ 'electron' , 'original-fs' ]
4545 . concat ( Object . keys ( product . dependencies || { } ) )
@@ -107,7 +107,6 @@ gulp.task('optimize-vscode', ['clean-optimized-vscode', 'compile-build', 'compil
107107 header : BUNDLED_FILE_HEADER ,
108108 out : 'out-vscode' ,
109109 languages : languages ,
110- // @ts -ignore review
111110 bundleInfo : undefined
112111} ) ) ;
113112
@@ -250,7 +249,6 @@ function packageTask(platform, arch, opts) {
250249 // // TODO@Dirk : this filter / buffer is here to make sure the nls.json files are buffered
251250 . pipe ( nlsFilter )
252251 . pipe ( buffer ( ) )
253- //@ts -ignore review
254252 . pipe ( nlsDev . createAdditionalLanguageFiles ( languages , path . join ( __dirname , '..' , 'i18n' ) ) )
255253 . pipe ( nlsFilter . restore ) ;
256254 } ) ) ;
@@ -303,7 +301,6 @@ function packageTask(platform, arch, opts) {
303301 . pipe ( util . cleanNodeModule ( 'native-is-elevated' , [ 'binding.gyp' , 'build/**' , 'src/**' , 'deps/**' ] , [ '**/*.node' ] ) )
304302 . pipe ( util . cleanNodeModule ( 'native-watchdog' , [ 'binding.gyp' , 'build/**' , 'src/**' ] , [ '**/*.node' ] ) )
305303 . pipe ( util . cleanNodeModule ( 'spdlog' , [ 'binding.gyp' , 'build/**' , 'deps/**' , 'src/**' , 'test/**' ] , [ '**/*.node' ] ) )
306- //@ts -ignore review
307304 . pipe ( util . cleanNodeModule ( 'jschardet' , [ 'dist/**' ] ) )
308305 . pipe ( util . cleanNodeModule ( 'windows-foreground-love' , [ 'binding.gyp' , 'build/**' , 'src/**' ] , [ '**/*.node' ] ) )
309306 . pipe ( util . cleanNodeModule ( 'windows-process-tree' , [ 'binding.gyp' , 'build/**' , 'src/**' ] , [ '**/*.node' ] ) )
@@ -446,8 +443,7 @@ gulp.task('vscode-translations-pull', function () {
446443gulp . task ( 'vscode-translations-import' , function ( ) {
447444 [ ...i18n . defaultLanguages , ...i18n . extraLanguages ] . forEach ( language => {
448445 gulp . src ( `../vscode-localization/${ language . id } /build/*/*.xlf` )
449- //@ts -ignore review
450- . pipe ( i18n . prepareI18nFiles ( language ) )
446+ . pipe ( i18n . prepareI18nFiles ( ) )
451447 . pipe ( vfs . dest ( `./i18n/${ language . folderName } ` ) ) ;
452448 gulp . src ( `../vscode-localization/${ language . id } /setup/*/*.xlf` )
453449 . pipe ( i18n . prepareIslFiles ( language , innoSetupConfig [ language . id ] ) )
@@ -478,8 +474,8 @@ gulp.task('upload-vscode-sourcemaps', ['minify-vscode'], () => {
478474const allConfigDetailsPath = path . join ( os . tmpdir ( ) , 'configuration.json' ) ;
479475gulp . task ( 'upload-vscode-configuration' , [ 'generate-vscode-configuration' ] , ( ) => {
480476 const branch = process . env . BUILD_SOURCEBRANCH ;
481- // @ts -ignore review
482- if ( ! branch . endsWith ( '/ master' ) && branch . indexOf ( '/release/' ) < 0 ) {
477+
478+ if ( ! / \/ m a s t e r $ / . test ( branch ) && branch . indexOf ( '/release/' ) < 0 ) {
483479 console . log ( `Only runs on master and release branches, not ${ branch } ` ) ;
484480 return ;
485481 }
0 commit comments