Skip to content

update ts version and get rid of the error #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"license": "MIT",
"main": "./out",
"dependencies": {
"typescript": "^4.4.3"
"typescript": "^5.8.2"
}
}
}
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function init(modules: { typescript: typeof import("typescript/lib/tsserverlibrary") }) {
import * as ts from "typescript/lib/tsserverlibrary";
function init(modules: { typescript: typeof ts }) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't right, the prior version does not include typescript into a build, your version does

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But point is - how it was before - it also didn't work. Compiler gives the error when upgrading the version. I found it when started a new plugin

const ts = modules.typescript;

function create(info: ts.server.PluginCreateInfo) {
Expand Down