@@ -35,7 +35,7 @@ var fs = require("fs");
3535var path = require ( "path" ) ;
3636var copy = require ( 'architect-build/copy' ) ;
3737var build = require ( 'architect-build/build' ) ;
38- var { correctModulesForAceBuilds , generateDeclaration} = require ( './tool/ace_declaration_generator' ) ;
38+ var { updateDeclarationModuleNames , generateDeclaration} = require ( './tool/ace_declaration_generator' ) ;
3939
4040var ACE_HOME = __dirname ;
4141var BUILD_DIR = ACE_HOME + "/build" ;
@@ -177,7 +177,6 @@ function ace() {
177177
178178function buildTypes ( ) {
179179 var aceCodeModeDefinitions = '/// <reference path="./ace-modes.d.ts" />' ;
180- var aceCodeExtensionDefinitions = '/// <reference path="./ace-extensions.d.ts" />' ;
181180 // ace-builds package has different structure and can't use mode types defined for the ace-code.
182181 // ace-builds modes are declared along with other modules in the ace-modules.d.ts file below.
183182 var paths = fs . readdirSync ( BUILD_DIR + '/src-noconflict' ) ;
@@ -204,7 +203,7 @@ function buildTypes() {
204203 fs . copyFileSync ( ACE_HOME + '/ace.d.ts' , BUILD_DIR + '/ace.d.ts' ) ;
205204 generateDeclaration ( BUILD_DIR + '/ace.d.ts' ) ;
206205 var definitions = fs . readFileSync ( BUILD_DIR + '/ace.d.ts' , 'utf8' ) ;
207- var newDefinitions = correctModulesForAceBuilds ( definitions ) ;
206+ var newDefinitions = updateDeclarationModuleNames ( definitions ) ;
208207 fs . writeFileSync ( BUILD_DIR + '/ace.d.ts' , newDefinitions ) ;
209208 //
210209 var esmUrls = [ ] ;
0 commit comments