Skip to content

Commit

Permalink
remove unnecessary function; use related path; declare module for ace…
Browse files Browse the repository at this point in the history
…-builds
  • Loading branch information
mkslanc committed Jun 24, 2023
1 parent c9b60dd commit 4d8aaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile.dryice.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ function buildTypes() {

var pathModules = [
"declare module 'ace-builds/webpack-resolver';",
"declare module 'ace-builds/esm-resolver';",
"declare module 'ace-builds/src-noconflict/ace';"
].concat(paths.map(function(path) {
if (moduleNameRegex.test(path)) {
Expand Down
6 changes: 1 addition & 5 deletions tool/esm_resolver_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function buildResolver() {
return `ace.config.setModuleLoader('${moduleName}', () => import('./${moduleName.replace("ace", "src") + ".js"}'));`;
}).join('\n') + "\n\nexport * as default from \"./src/ace\";";

var declaration = generateDeclaration();
var declaration = 'export * from "./ace"';

fs.writeFileSync(__dirname + '/../esm-resolver.js', loader, "utf8");
fs.writeFileSync(__dirname + '/../esm-resolver.d.ts', declaration, "utf8");
Expand Down Expand Up @@ -41,8 +41,4 @@ function getModuleNames() {
return paths;
}

function generateDeclaration() {
return "export * from \"ace-code\";"
}

buildResolver();

0 comments on commit 4d8aaae

Please sign in to comment.