@xcodekit/xcode-wasm 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node-wrapper.mjs +4 -2
- package/package.json +1 -1
- package/xcode_bg.wasm +0 -0
package/node-wrapper.mjs
CHANGED
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { readFileSync, writeFileSync } from "fs";
|
|
9
|
+
import { fileURLToPath } from "url";
|
|
9
10
|
import * as wasm from "./xcode.js";
|
|
10
|
-
import wasmModule from "./xcode_bg.wasm";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const wasmPath = fileURLToPath(new URL("./xcode_bg.wasm", import.meta.url));
|
|
13
|
+
const wasmBytes = readFileSync(wasmPath);
|
|
14
|
+
await wasm.default({ module_or_path: wasmBytes });
|
|
13
15
|
|
|
14
16
|
class XcodeProject extends wasm.XcodeProject {
|
|
15
17
|
/** @type {string | null} */
|
package/package.json
CHANGED
package/xcode_bg.wasm
CHANGED
|
Binary file
|