@lumis-sh/wasm-typescript 0.26.0 → 0.26.1

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/index.node.js ADDED
@@ -0,0 +1,3 @@
1
+ import { readFile } from 'node:fs/promises'
2
+ const wasmBinary = await readFile(new URL('./tree-sitter-typescript.wasm', import.meta.url))
3
+ export default new Uint8Array(wasmBinary.buffer, wasmBinary.byteOffset, wasmBinary.byteLength)
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@lumis-sh/wasm-typescript",
3
- "version": "0.26.0",
4
- "description": "Tree-sitter WASM grammar for tree-sitter-typescript",
3
+ "version": "0.26.1",
4
+ "type": "module",
5
+ "description": "Tree-sitter WASM grammar for typescript",
5
6
  "author": "Leandro Pereira",
6
7
  "license": "MIT",
7
8
  "homepage": "https://lumis.sh",
@@ -9,6 +10,13 @@
9
10
  "type": "git",
10
11
  "url": "git+https://github.com/leandrocp/lumis.git"
11
12
  },
13
+ "exports": {
14
+ ".": {
15
+ "node": "./index.node.js",
16
+ "default": "./index.js"
17
+ },
18
+ "./tree-sitter-typescript.wasm": "./tree-sitter-typescript.wasm"
19
+ },
12
20
  "lumis": {
13
21
  "language": "typescript",
14
22
  "parser": "tree-sitter-typescript",
@@ -17,5 +25,5 @@
17
25
  "treeSitter": "0.26"
18
26
  },
19
27
  "keywords": ["lumis-sh", "wasm", "tree-sitter"],
20
- "files": ["*.wasm", "README.md", "LICENSE"]
28
+ "files": ["*.wasm", "*.js", "README.md", "LICENSE"]
21
29
  }