Skip to content

Commit 53579f0

Browse files
committed
support modules as well as namespaces in external module conversion
1 parent 54ed3c4 commit 53579f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jakefile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
361361
// Create the node definition file by replacing 'ts' module with '"typescript"' as a module.
362362
jake.cpR(standaloneDefinitionsFile, nodeDefinitionsFile, {silent: true});
363363
var definitionFileContents = fs.readFileSync(nodeDefinitionsFile).toString();
364-
definitionFileContents = definitionFileContents.replace(/declare namespace ts/g, 'declare module "typescript"');
364+
definitionFileContents = definitionFileContents.replace(/declare (namespace|module) ts/g, 'declare module "typescript"');
365365
fs.writeFileSync(nodeDefinitionsFile, definitionFileContents);
366366
});
367367

0 commit comments

Comments
 (0)