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

Improve support of non-relative imports in projects with a baseUrl #224

Merged
merged 7 commits into from Oct 2, 2022

Conversation

timocov
Copy link
Owner

@timocov timocov commented Oct 2, 2022

Originally created by @josh- in #219, but the changes needed some additional work so here it is.

I rebased Josh's changes on the latest repo state and added fixed on top of that.

This PR includes the following breaking changes:

  • min typescript version changed from 3.0 to 4.5
  • yargs was upgraded from 17.2 to 17.6
  • min nodejs version changed from 12 to 14
  • compilation target changed from es5 to es2020 (modules are still commonjs though)

Fixes #219

- Upgraded yargs
- Upgraded min nodejs version to 14
- Changed target from es5 to es2020
…e baseUrl

- Used `resolveReferencedModule` helper to check whether a referenced module is external or internal
- Refactored generating output and now we're using compiler's API to deal with modifiers
@timocov timocov force-pushed the fix-module-resolution-with-non-relative-imports branch from ad68bf2 to f55b2f1 Compare October 2, 2022 21:30
@timocov timocov added this to the 7.0 milestone Oct 2, 2022
@timocov timocov force-pushed the fix-module-resolution-with-non-relative-imports branch from c25857e to 76c6ba7 Compare October 2, 2022 22:59
@timocov timocov merged commit 2a1a48f into master Oct 2, 2022
@timocov timocov deleted the fix-module-resolution-with-non-relative-imports branch October 2, 2022 23:04
@josh-
Copy link
Contributor

josh- commented Oct 3, 2022

Thanks @timocov 🎉🎉

@timocov
Copy link
Owner Author

timocov commented Oct 7, 2022

The fix has been released in v7.0.0.

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

Successfully merging this pull request may close these issues.

None yet

2 participants