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

cli/apply: Run "esbuild" without "npx" #1788

Merged
merged 1 commit into from
Sep 22, 2022
Merged

Conversation

penberg
Copy link
Contributor

@penberg penberg commented Sep 22, 2022

The "esbuild" program is a native binary. Let's run it without "npx" to eliminate the Node.js dependency in "chisel apply".

The "esbuild" program is a native binary. Let's run it without "npx" to
eliminate the Node.js dependency in "chisel apply".
@@ -162,6 +162,17 @@ pub(crate) async fn apply(
Ok((modules, index_candidates))
}

fn esbuild<A: AsRef<OsStr>>(args: &[A]) -> Result<tokio::process::Child> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it would be useful to merge esbuild and npx into a single function (run()? command()? execute()?) to make this a bit drier?

Copy link

Choose a reason for hiding this comment

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

for a follow up if Pekka wants it.

@mergify mergify bot merged commit 30873d0 into chiselstrike:main Sep 22, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants