fix lib inclusion for tests
This commit is contained in:
		
							
								
								
									
										6
									
								
								dist/mod02/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/mod02/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -29,13 +29,12 @@ let mocha = function (configArg) { | ||||
|             target: 'ES5', | ||||
|             emitDecoratorMetadata: true, | ||||
|             experimentalDecorators: true, | ||||
|             lib: ['es2015.promise', 'es5'] | ||||
|             lib: ['ES2015.Promise', 'ES5', 'ES2015.Generator'] | ||||
|         }), | ||||
|         plugins.gulpIstanbul({}), | ||||
|         plugins.gulpSourcemaps.write(), | ||||
|         plugins.gulpFunction.forEach((file) => __awaiter(this, void 0, void 0, function* () { | ||||
|             file.path = file.path.replace(paths.tsDir, paths.distDir); | ||||
|             console.log(file.path); | ||||
|         })), | ||||
|         plugins.gulpInjectModules(), | ||||
|         plugins.through2.obj((file, enc, cb) => { | ||||
| @@ -49,7 +48,8 @@ let mocha = function (configArg) { | ||||
|         plugins.gulpTypeScript({ | ||||
|             target: 'ES5', | ||||
|             emitDecoratorMetadata: true, | ||||
|             experimentalDecorators: true | ||||
|             experimentalDecorators: true, | ||||
|             lib: ['ES2015.Promise', 'ES5', 'ES2015.Generator'] | ||||
|         }), | ||||
|         plugins.gulpInjectModules(), | ||||
|         plugins.gulpMocha(), | ||||
|   | ||||
| @@ -25,14 +25,13 @@ let mocha = function (configArg: INpmtsConfig) { | ||||
|             target: 'ES5', | ||||
|             emitDecoratorMetadata: true, | ||||
|             experimentalDecorators: true, | ||||
|             lib: ['es2015.promise','es5'] | ||||
|             lib: ['ES2015.Promise','ES5','ES2015.Generator'] | ||||
|         }), | ||||
|         plugins.gulpIstanbul({ | ||||
|         }), | ||||
|         plugins.gulpSourcemaps.write(), | ||||
|         plugins.gulpFunction.forEach(async file => { | ||||
|             file.path = file.path.replace(paths.tsDir, paths.distDir) | ||||
|             console.log(file.path) | ||||
|         }), | ||||
|         plugins.gulpInjectModules(), | ||||
|         plugins.through2.obj( | ||||
| @@ -50,7 +49,8 @@ let mocha = function (configArg: INpmtsConfig) { | ||||
|         plugins.gulpTypeScript({ | ||||
|             target: 'ES5', | ||||
|             emitDecoratorMetadata: true, | ||||
|             experimentalDecorators: true | ||||
|             experimentalDecorators: true, | ||||
|             lib: ['ES2015.Promise','ES5','ES2015.Generator'] | ||||
|         }), | ||||
|         plugins.gulpInjectModules(), | ||||
|         plugins.gulpMocha(), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user