8000 Conform to expectation of recent TS versions · kaizhi-singtown/python@cd0f089 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd0f089

Browse files
committed
Conform to expectation of recent TS versions
FIX: Make the package work with new TS resolution styles.
1 parent 94a22e2 commit cd0f089

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

dist/index.d.cts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import {LRParser} from "@lezer/lr"
2+
3+
export const parser: LRParser

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"main": "dist/index.cjs",
66
"type": "module",
77
"exports": {
8-
"import": "./dist/index.es.js",
8+
"import": "./dist/index.js",
99
"require": "./dist/index.cjs"
1010
},
11-
"module": "dist/index.es.js",
11+
"module": "dist/index.js",
1212
"types": "dist/index.d.ts",
1313
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
1414
"license": "MIT",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
file: "./dist/index.cjs"
88
}, {
99
format: "es",
10-
file: "./dist/index.es.js"
10+
file: "./dist/index.js"
1111
}],
1212
external(id) { return !/^[\.\/]/.test(id) },
1313
plugins: [

test/test-incremental.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {parser} from "../dist/index.es.js"
1+
import {parser} from "../dist/index.js"
22
import {fileTests} from "@lezer/generator/dist/test"
33
import {Tree, TreeFragment} from "@lezer/common"
44

test/test-python.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {parser} from "../dist/index.es.js"
1+
import {parser} from "../dist/index.js"
22
import {fileTests} from "@lezer/generator/dist/test"
33

44
import * as fs from "fs"

0 commit comments

Comments
 (0)
0