now makes TypeScript modules fully typed by default
This commit is contained in:
		
							
								
								
									
										7
									
								
								dist/npmts.compile.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								dist/npmts.compile.js
									
									
									
									
										vendored
									
									
								
							| @@ -38,6 +38,13 @@ exports.run = function (configArg) { | ||||
|     moduleStream.on("queueDrain", function () { | ||||
|         plugins.beautylog.ok("TypeScript has been compiled!"); | ||||
|         moduleStream.on("finish", function () { | ||||
|             try { | ||||
|                 if (config.mode = "default") | ||||
|                     plugins.fs.copySync(plugins.path.join(paths.cwd, "ts/typings"), plugins.path.join(paths.cwd, "dist/typings")); | ||||
|             } | ||||
|             catch (err) { | ||||
|                 plugins.beautylog.warn("failed to copy external typings for full module declaration support"); | ||||
|             } | ||||
|             done.resolve(config); | ||||
|         }); | ||||
|         moduleStream.end(); | ||||
|   | ||||
| @@ -45,6 +45,15 @@ export let run = function (configArg) { | ||||
|     moduleStream.on("queueDrain", function () { | ||||
|         plugins.beautylog.ok("TypeScript has been compiled!"); | ||||
|         moduleStream.on("finish", function () { | ||||
|             try { | ||||
|                 if(config.mode = "default") plugins.fs.copySync( | ||||
|                     plugins.path.join(paths.cwd,"ts/typings"), | ||||
|                     plugins.path.join(paths.cwd,"dist/typings") | ||||
|                 ); | ||||
|             } | ||||
|             catch (err){ | ||||
|                 plugins.beautylog.warn("failed to copy external typings for full module declaration support"); | ||||
|             } | ||||
|             done.resolve(config); | ||||
|         }); | ||||
|         moduleStream.end(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user