@yagnikpt/tpaper 0.1.0 → 0.2.0

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.
@@ -13,6 +13,7 @@ var __export = (target, all) => {
13
13
  set: __exportSetter.bind(all, name2)
14
14
  });
15
15
  };
16
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
16
17
  var __require = import.meta.require;
17
18
 
18
19
  // virtual:tree-sitter-wasm-path
@@ -20,7 +21,10 @@ var exports_tree_sitter_wasm_path = {};
20
21
  __export(exports_tree_sitter_wasm_path, {
21
22
  default: () => tree_sitter_wasm_path_default
22
23
  });
23
- var tree_sitter_wasm_path_default = "/home/runner/work/tpaper/tpaper/scripts/node_modules/web-tree-sitter/web-tree-sitter.wasm";
24
+ var tree_sitter_wasm_path_default;
25
+ var init_tree_sitter_wasm_path = __esm(() => {
26
+ tree_sitter_wasm_path_default = import.meta.dirname + "/tree-sitter.wasm";
27
+ });
24
28
 
25
29
  // node_modules/web-tree-sitter/tree-sitter.js
26
30
  var __defProp2 = Object.defineProperty;
@@ -3511,7 +3515,7 @@ class ParserWorker {
3511
3515
  this.tsDataPath = path2.join(dataPath, "tree-sitter");
3512
3516
  await mkdir3(path2.join(this.tsDataPath, "languages"), { recursive: true });
3513
3517
  await mkdir3(path2.join(this.tsDataPath, "queries"), { recursive: true });
3514
- let treeWasm = await resolveBundledFilePath(() => Promise.resolve().then(() => exports_tree_sitter_wasm_path), () => import.meta.resolve("web-tree-sitter/tree-sitter.wasm"), import.meta.url);
3518
+ let treeWasm = await resolveBundledFilePath(() => Promise.resolve().then(() => (init_tree_sitter_wasm_path(), exports_tree_sitter_wasm_path)), () => import.meta.resolve("web-tree-sitter/tree-sitter.wasm"), import.meta.url);
3515
3519
  if (isBunfsPath(treeWasm)) {
3516
3520
  treeWasm = normalizeBunfsPath(path2.parse(treeWasm).base);
3517
3521
  }
Binary file
package/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  "cli"
44
44
  ],
45
45
  "author": "Yagnik Patel <yagnik.pt@gmail.com>",
46
- "version": "0.1.0"
46
+ "version": "0.2.0"
47
47
  }