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

Standalone CLI: Investigate bundling more of the cli #5826

Open
timotheeguerin opened this issue Jan 31, 2025 · 0 comments
Open

Standalone CLI: Investigate bundling more of the cli #5826

timotheeguerin opened this issue Jan 31, 2025 · 0 comments
Labels
compiler:core Issues for @typespec/compiler feature New feature or request triaged:core
Milestone

Comments

@timotheeguerin
Copy link
Member

Follow up fromhttps://github.com//pull/5794

Currently the standalone cli will download the latest compiler(similar to running npm install -g @typespec/compiler and use that version which in turn might use the local one if available.

It would be good to see if we can bundle better so the cli is basically the version of the compiler package minus the "compiler" part.

For this we need:

  • to be able to bundle the package manager used in tsp install in a single file(which is a problem right now with npm arborist)
  • reorganize the compiler so that we can bundlke only the cli part(without the compiler logic)
    • if you try to tsp compile . without having a local compiler installed it should fail
    • decide if we always still try to load the local compiler if available or only for the compile stage.
@timotheeguerin timotheeguerin added the compiler:core Issues for @typespec/compiler label Jan 31, 2025
@markcowl markcowl added this to the Backlog milestone Feb 3, 2025
@markcowl markcowl added feature New feature or request triaged:core labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:core Issues for @typespec/compiler feature New feature or request triaged:core
Projects
None yet
Development

No branches or pull requests

2 participants