Skip to content

fix: process.env members could be undefined, abstract into RustEnv #49

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

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

icyJoseph
Copy link
Contributor

Hi,

Really cool project!

I've started to familiarize with the code base, so here are some type fixes for #47.

What do we think of upgrading to TS 4.4.x?

@@ -67,6 +70,10 @@ async function runUserScripts(entrypoint: string) {
}
}

function isExecaError(err: Error): err is ExecaError {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have to roll out our own type guard to make sure we are dealing with an ExecaError

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you!

}
throw e;
Copy link
Contributor Author

@icyJoseph icyJoseph Sep 7, 2021

Choose a reason for hiding this comment

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

Should always re throw? I think?

@leerob
Copy link
Contributor

leerob commented Sep 9, 2021

What do we think of upgrading to TS 4.4.x?

That would be amazing 😄

@leerob leerob merged commit 3c8bac6 into vercel-community:main Sep 9, 2021
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.

2 participants