feat: added glue exports for kwm/qmc

This commit is contained in:
鲁树人
2024-09-07 13:13:39 +01:00
parent e7d8231474
commit 3292ad51ea
16 changed files with 398 additions and 241 deletions

View File

@@ -37,7 +37,7 @@ async function replaceBytes(filepath, ...binaryReplacements) {
let content = await readFile(filepath);
for (const [search, replace] of binaryReplacements) {
let idx = -1;
while ((idx = content.indexOf(search, idx + 1)) != -1) {
while ((idx = content.indexOf(search, idx + 1)) !== -1) {
replace.copy(content, idx, 0, replace.length);
}
}
@@ -91,6 +91,7 @@ async function main() {
// Ask rollup to build bundles.
await run(['pnpm', 'build:bundle']);
await run(['pnpm', 'exec', 'prettier', '--ignore-path', '', '-w', 'dist/loader.d.ts']);
}
main()