Skip to content

Commit 9058c8e

Browse files
committed
postprocess to remove const enums
1 parent 8504034 commit 9058c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jakefile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
444444
// Stanalone/web definition file using global 'ts' namespace
445445
jake.cpR(standaloneDefinitionsFile, nodeDefinitionsFile, {silent: true});
446446
var definitionFileContents = fs.readFileSync(nodeDefinitionsFile).toString();
447-
definitionFileContents = definitionFileContents.replace(/^(\s*)(export )?const enum (\S+) {$/g, '$1$2enum $3 {');
447+
definitionFileContents = definitionFileContents.replace(/^(\s*)(export )?const enum (\S+) {(\s*)$/gm, '$1$2enum $3 {$4');
448448
fs.writeFileSync(standaloneDefinitionsFile, definitionFileContents);
449449

450450
// Official node package definition file, pointed to by 'typings' in package.json

0 commit comments

Comments
 (0)