@@ -27,7 +27,9 @@ const common = require('./lib/optimize');
2727const nlsDev = require ( 'vscode-nls-dev' ) ;
2828const root = path . dirname ( __dirname ) ;
2929const commit = util . getVersion ( root ) ;
30+ // @ts -ignore Microsoft/TypeScript#21262 complains about a require of a JSON file
3031const packageJson = require ( '../package.json' ) ;
32+ // @ts -ignore Microsoft/TypeScript#21262 complains about a require of a JSON file
3133const product = require ( '../product.json' ) ;
3234const crypto = require ( 'crypto' ) ;
3335const i18n = require ( './lib/i18n' ) ;
@@ -37,15 +39,16 @@ const getElectronVersion = require('./lib/electron').getElectronVersion;
3739// const createAsar = require('./lib/asar').createAsar;
3840
3941const productionDependencies = deps . getProductionDependencies ( path . dirname ( __dirname ) ) ;
42+ //@ts -ignore review
4043const baseModules = Object . keys ( process . binding ( 'natives' ) ) . filter ( n => ! / ^ _ | \/ / . test ( n ) ) ;
4144const nodeModules = [ 'electron' , 'original-fs' ]
4245 . concat ( Object . keys ( product . dependencies || { } ) )
4346 . concat ( _ . uniq ( productionDependencies . map ( d => d . name ) ) )
4447 . concat ( baseModules ) ;
4548
4649// Build
47-
48- const builtInExtensions = require ( './builtInExtensions' ) ;
50+ // @ts -ignore Microsoft/TypeScript#21262 complains about a require of a JSON file
51+ const builtInExtensions = require ( './builtInExtensions.json ' ) ;
4952
5053const excludedExtensions = [
5154 'vscode-api-tests' ,
@@ -104,6 +107,8 @@ gulp.task('optimize-vscode', ['clean-optimized-vscode', 'compile-build', 'compil
104107 header : BUNDLED_FILE_HEADER ,
105108 out : 'out-vscode' ,
106109 languages : languages ,
110+ // @ts -ignore review
111+ bundleInfo : undefined
107112} ) ) ;
108113
109114
@@ -245,6 +250,7 @@ function packageTask(platform, arch, opts) {
245250 // // TODO@Dirk : this filter / buffer is here to make sure the nls.json files are buffered
246251 . pipe ( nlsFilter )
247252 . pipe ( buffer ( ) )
253+ //@ts -ignore review
248254 . pipe ( nlsDev . createAdditionalLanguageFiles ( languages , path . join ( __dirname , '..' , 'i18n' ) ) )
249255 . pipe ( nlsFilter . restore ) ;
250256 } ) ) ;
@@ -297,6 +303,7 @@ function packageTask(platform, arch, opts) {
297303 . pipe ( util . cleanNodeModule ( 'native-is-elevated' , [ 'binding.gyp' , 'build/**' , 'src/**' , 'deps/**' ] , [ '**/*.node' ] ) )
298304 . pipe ( util . cleanNodeModule ( 'native-watchdog' , [ 'binding.gyp' , 'build/**' , 'src/**' ] , [ '**/*.node' ] ) )
299305 . pipe ( util . cleanNodeModule ( 'spdlog' , [ 'binding.gyp' , 'build/**' , 'deps/**' , 'src/**' , 'test/**' ] , [ '**/*.node' ] ) )
306+ //@ts -ignore review
300307 . pipe ( util . cleanNodeModule ( 'jschardet' , [ 'dist/**' ] ) )
301308 . pipe ( util . cleanNodeModule ( 'windows-foreground-love' , [ 'binding.gyp' , 'build/**' , 'src/**' ] , [ '**/*.node' ] ) )
302309 . pipe ( util . cleanNodeModule ( 'windows-process-tree' , [ 'binding.gyp' , 'build/**' , 'src/**' ] , [ '**/*.node' ] ) )
@@ -439,6 +446,7 @@ gulp.task('vscode-translations-pull', function () {
439446gulp . task ( 'vscode-translations-import' , function ( ) {
440447 [ ...i18n . defaultLanguages , ...i18n . extraLanguages ] . forEach ( language => {
441448 gulp . src ( `../vscode-localization/${ language . id } /build/*/*.xlf` )
449+ //@ts -ignore review
442450 . pipe ( i18n . prepareI18nFiles ( language ) )
443451 . pipe ( vfs . dest ( `./i18n/${ language . folderName } ` ) ) ;
444452 gulp . src ( `../vscode-localization/${ language . id } /setup/*/*.xlf` )
@@ -470,6 +478,7 @@ gulp.task('upload-vscode-sourcemaps', ['minify-vscode'], () => {
470478const allConfigDetailsPath = path . join ( os . tmpdir ( ) , 'configuration.json' ) ;
471479gulp . task ( 'upload-vscode-configuration' , [ 'generate-vscode-configuration' ] , ( ) => {
472480 const branch = process . env . BUILD_SOURCEBRANCH ;
481+ //@ts -ignore review
473482 if ( ! branch . endsWith ( '/master' ) && branch . indexOf ( '/release/' ) < 0 ) {
474483 console . log ( `Only runs on master and release branches, not ${ branch } ` ) ;
475484 return ;
0 commit comments