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

[question] zed_extension_api: expose npm subcommands to build npm packages #1649

Open
1 task done
florian-sanders opened this issue Nov 9, 2024 · 0 comments
Open
1 task done
Labels
needs infrastructure Zed's extension infrastructure doesn't currently support this type of extension

Comments

@florian-sanders
Copy link

florian-sanders commented Nov 9, 2024

Check for existing issues

  • Completed

Misc notes

Context

I'm working on an extension for Stylelint (see #1648).

I'm a beginner in Rust so it's highly possible it's a skill issue but I couldn't find a way to run npm run build & npm run another-npm-script (async) after the npm package I rely on has been installed.

Why would I need that?

The extension I'm building relies on a TypeScript package that needs to be built & bundled so that it can be run.

Related stuff I found in Zed source code

I believe my need is very close to what is available in the node_runtime.rs API but I don't believe this API is available as a public crate and I don't think there's an equivalent within the zed_extension_api?

@florian-sanders florian-sanders added the needs infrastructure Zed's extension infrastructure doesn't currently support this type of extension label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs infrastructure Zed's extension infrastructure doesn't currently support this type of extension
Projects
None yet
Development

No branches or pull requests

1 participant