-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update blocked ESM only packages (execa, process-exists) #3856
Conversation
7c34b35
to
3060094
Compare
extension/src/process/execution.ts
Outdated
|
||
let execa: EsmExeca | ||
let doesProcessExist: EsmProcessExists | ||
const importEsmModules = async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[F] The reason that we cannot simply await import('execa')
before we call it is that whenever we create a process the function has to be sync. If a Promise<Process>
is returned then we cannot attach anything to it. We can only await
the stdout
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is still relevant
fd91f06
to
1fdc13f
Compare
1fdc13f
to
d44731f
Compare
5d3190b
to
b610330
Compare
b610330
to
3094ba8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Code Climate has analyzed commit 85a9c91 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 94.9%. View more on Code Climate. |
For a while, I've wanted to update
execa
andprocess-exists
but have been unable to because they are ESM only packages. Importing these modules is now possible (after discovering"moduleResolution": "node16"
by chance). This PR upgrade the aforementioned packages and integrates the way we now need to import them with the rest of code base.Please LMK if you have any questions 🙏🏻.