oh-my-opencode 0.1.11 → 0.1.12
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/dist/index.js +3 -1
- package/package.json +1 -1
- package/dist/tree-sitter-p2whf0kn.wasm +0 -0
package/dist/index.js
CHANGED
|
@@ -4159,7 +4159,9 @@ async function initParserClass() {
|
|
|
4159
4159
|
parserInitPromise = (async () => {
|
|
4160
4160
|
debugLog("importing web-tree-sitter...");
|
|
4161
4161
|
parserClass = (await Promise.resolve().then(() => __toESM(require_tree_sitter(), 1))).default;
|
|
4162
|
-
const
|
|
4162
|
+
const webTreeSitterPath = import.meta.resolve("web-tree-sitter");
|
|
4163
|
+
const packageDir = webTreeSitterPath.replace(/\/[^/]+$/, "").replace("file://", "");
|
|
4164
|
+
const treeSitterWasmPath = `${packageDir}/tree-sitter.wasm`;
|
|
4163
4165
|
debugLog("wasm path:", treeSitterWasmPath);
|
|
4164
4166
|
await parserClass.init({
|
|
4165
4167
|
locateFile: () => treeSitterWasmPath
|
package/package.json
CHANGED
|
Binary file
|