Skip to content

Commit

Permalink
Conform to expectation of recent TS versions
Browse files Browse the repository at this point in the history
FIX: Make the package work with new TS resolution styles.
  • Loading branch information
marijnh committed Jul 3, 2023
1 parent 94a22e2 commit cd0f089
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions dist/index.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {LRParser} from "@lezer/lr"

export const parser: LRParser
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "dist/index.cjs",
"type": "module",
"exports": {
"import": "./dist/index.es.js",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"module": "dist/index.es.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Marijn Haverbeke <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
file: "./dist/index.cjs"
}, {
format: "es",
file: "./dist/index.es.js"
file: "./dist/index.js"
}],
external(id) { return !/^[\.\/]/.test(id) },
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion test/test-incremental.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {parser} from "../dist/index.es.js"
import {parser} from "../dist/index.js"
import {fileTests} from "@lezer/generator/dist/test"
import {Tree, TreeFragment} from "@lezer/common"

Expand Down
2 changes: 1 addition & 1 deletion test/test-python.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {parser} from "../dist/index.es.js"
import {parser} from "../dist/index.js"
import {fileTests} from "@lezer/generator/dist/test"

import * as fs from "fs"
Expand Down

0 comments on commit cd0f089

Please sign in to comment.