Skip to content

Commit f43018b

Browse files
Nathan SoboAntonio Scandurra
Nathan Sobo
and
Antonio Scandurra
committed
Fix require entrypoints
Co-Authored-By: Antonio Scandurra <[email protected]>
1 parent 59b7c6d commit f43018b

File tree

5 files changed

+4
-23
lines changed

5 files changed

+4
-23
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "tree-sitter-typescript",
33
"version": "0.13.6",
44
"description": "Typescript grammar for tree-sitter",
5-
"main": "typescript.js",
65
"keywords": [
76
"parser",
87
"tree-sitter",

tsx.js

-9
This file was deleted.

tsx/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
try {
2-
module.exports = require("./build/Release/tree_sitter_typescript_binding");
2+
module.exports = require("../build/Release/tree_sitter_tsx_binding");
33
} catch (error) {
44
try {
5-
module.exports = require("./build/Debug/tree_sitter_typescript_binding");
5+
module.exports = require("../build/Debug/tree_sitter_tsx_binding");
66
} catch (_) {
77
throw error
88
}

typescript.js

-9
This file was deleted.

typescript/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
try {
2-
module.exports = require("./build/Release/tree_sitter_typescript_binding");
2+
module.exports = require("../build/Release/tree_sitter_typescript_binding");
33
} catch (error) {
44
try {
5-
module.exports = require("./build/Debug/tree_sitter_typescript_binding");
5+
module.exports = require("../build/Debug/tree_sitter_typescript_binding");
66
} catch (_) {
77
throw error
88
}

0 commit comments

Comments
 (0)