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

fix: compile TS dependencies of JS files #6000

Merged
merged 8 commits into from
Jun 1, 2020

Conversation

bartlomieju
Copy link
Member

Fixes #5982

@bartlomieju bartlomieju added bug Something isn't working correctly cli related to cli/ dir labels May 31, 2020
@bartlomieju bartlomieju requested a review from ry May 31, 2020 15:19
cli/global_state.rs Outdated Show resolved Hide resolved
cli/global_state.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

LGTM

#[test]
fn test_needs_compilation() {
assert!(!needs_compilation(false, MediaType::JavaScript, vec![]));
assert!(needs_compilation(true, MediaType::JavaScript, vec![]));
Copy link
Member

@ry ry Jun 1, 2020

Choose a reason for hiding this comment

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

Could you add one more example?

assert!(!needs_compilation(true, MediaType::JavaScript, TODO));

I'm not sure what TODO should be...

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju merged commit c813990 into denoland:master Jun 1, 2020
@bartlomieju bartlomieju deleted the fix_compile_ts_from_js branch June 1, 2020 19:01
bartlomieju added a commit to bartlomieju/deno that referenced this pull request Jun 5, 2020
This commit fixes regression that caused TS dependencies
not being compiled.

Check was added that ensures TS compiler is run if 
any of dependencies in module graph is TS/TSX/JSX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly cli related to cli/ dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deno error pure js file
4 participants