cleanup
This commit is contained in:
parent
b93dd31ba6
commit
44497adf31
2 changed files with 1 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { build } from "bun";
|
||||
import { copyFile, mkdir, writeFile, readFile, rm, chmod } from "node:fs/promises";
|
||||
import { copyFile, mkdir, writeFile, readFile, rm } from "node:fs/promises";
|
||||
import { join, resolve } from "node:path";
|
||||
|
||||
const __dirname = new URL(".", import.meta.url).pathname;
|
||||
|
|
@ -36,7 +36,6 @@ async function buildPlatformFile(platform) {
|
|||
|
||||
const platformPath = join(SRC_DIR, "platform.js");
|
||||
await writeFile(platformPath, platformContent);
|
||||
await chmod(platformPath, 0o600);
|
||||
}
|
||||
|
||||
async function buildAndCopy(buildType) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { wasmBinary, wasmExecJs } from "./wasm-loader.browser.js";
|
||||
|
||||
export async function loadFile(path) {
|
||||
console.log("loading " + path);
|
||||
if (path === "./d2.wasm") {
|
||||
return wasmBinary.buffer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue