Skip to content
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

Remove deno_typescript #6813

Merged
merged 2 commits into from
Jul 20, 2020
Merged

Remove deno_typescript #6813

merged 2 commits into from
Jul 20, 2020

Conversation

ry
Copy link
Member

@ry ry commented Jul 19, 2020

No description provided.

@ry ry requested a review from bartlomieju July 20, 2020 18:49
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 glad to see deno_typescript go

Comment on lines +80 to +85
fn ts_version() -> String {
let data = include_str!("typescript/package.json");
let pkg: serde_json::Value = serde_json::from_str(data).unwrap();
pkg["version"].as_str().unwrap().to_string()
}

Copy link
Member

Choose a reason for hiding this comment

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

IMO this is redundant and could remove build depdendency on serde and serde_json, why not just hard code it? TS update process it manual anyway

Copy link
Contributor

Choose a reason for hiding this comment

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

We will forget it. I would leave it for now until we have a better approach overall to managing TypeScript (which I still think a seperate crate is the right way for the compiler.

The other way would be to return it when creating compiler snapshot as an op out with the ts.version information. That is actually more reliable. Again, something I think should be done in the compiler crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants