Skip to content

Commit bee6a9f

Browse files
authored
Refactor and clean up Binaryen bindings (AssemblyScript#1889)
1 parent f354678 commit bee6a9f

14 files changed

+1188
-1590
lines changed

scripts/build-dts.js

+15-3
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,7 @@ module.exports.default({
436436
project: path.resolve(__dirname, "..", "src"),
437437
prefix: "assemblyscript",
438438
exclude: [
439-
"glue/js/index.ts",
440-
"glue/js/node.d.ts",
441-
"glue/binaryen.d.ts"
439+
"glue/**",
442440
],
443441
verbose: true,
444442
sendMessage: console.log,
@@ -456,6 +454,20 @@ module.exports.default({
456454
stdout: stdout
457455
});
458456

457+
stdout.write("\n");
458+
459+
module.exports.default({
460+
project: path.resolve(__dirname, "..", "src/glue"),
461+
prefix: "assemblyscript/src/glue",
462+
exclude: [
463+
"js/index.ts",
464+
"js/node.d.ts"
465+
],
466+
verbose: true,
467+
sendMessage: console.log,
468+
stdout: stdout
469+
});
470+
459471
var source = stdout.toString().replace(/\/\/\/ <reference[^>]*>\r?\n/g, "");
460472

461473
const ts = require("typescript");

0 commit comments

Comments
 (0)