Skip to content

Commit

Permalink
split modules by different context
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc committed Apr 17, 2024
1 parent 3674429 commit 65d23ff
Show file tree
Hide file tree
Showing 12 changed files with 10,366 additions and 8,881 deletions.
14 changes: 13 additions & 1 deletion Makefile.dryice.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ var fs = require("fs");
var path = require("path");
var copy = require('architect-build/copy');
var build = require('architect-build/build');
var {updateDeclarationModuleNames, generateDeclaration} = require('./tool/ace_declaration_generator');
var {
updateDeclarationModuleNames,
generateDeclaration,
SEPARATE_MODULES
} = require('./tool/ace_declaration_generator');

var ACE_HOME = __dirname;
var BUILD_DIR = ACE_HOME + "/build";
Expand Down Expand Up @@ -210,6 +214,14 @@ function buildTypes() {
fs.copyFileSync(ACE_HOME + '/ace-modes.d.ts', BUILD_DIR + '/ace-modes.d.ts');
correctDeclarationsForBuild(BUILD_DIR + '/ace.d.ts', pathModules);
correctDeclarationsForBuild(BUILD_DIR + '/ace-modes.d.ts');

let allModules = SEPARATE_MODULES;
allModules.push("modules"); // core modules
allModules.forEach(function (key) {
let fileName = '/ace-' + key + '.d.ts';
fs.copyFileSync(ACE_HOME + fileName, BUILD_DIR + fileName);
correctDeclarationsForBuild(BUILD_DIR + fileName);
});

var esmUrls = [];

Expand Down
Loading

0 comments on commit 65d23ff

Please sign in to comment.