mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-08 04:29:54 +00:00
feat: added glue exports for kwm/qmc
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user