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 exe #5794

Merged
merged 148 commits into from
Feb 7, 2025
Merged

Standalone exe #5794

merged 148 commits into from
Feb 7, 2025

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Jan 28, 2025

fix #5800
Adds a standalone executable. The way it works is by downloading the latest compiler and running that.
This is right now the easiest option as it quite a pain to bundle the package managers.

It comes with 2 command line installer

  • install.sh: install on linux/macos
  • powershell.ps1 (install on windows)

This right now doesn't work because the latest compiler doesn't have a dependency on npm lib and expect to find a local npm exe which might not be available if you did only install TypeSpec. SO we need to wait next release to document it

There is quite a few follow up to work on

  1. Add docs (After next release)
  2. Include the install script in the website/better url for one liner(e.g. curl -fsSL https://typespec.io/install.sh | bash )
  3. Investigate more if we can bundle the cli (without the compiler) and get rid of this installation step.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 28, 2025

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - feature ✏️

Use local version of npm to manage dependencies when running tsp install

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 28, 2025

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs 🛝 VSCode Extension

Copy link
Member

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

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

Leaving some super minor comments while reviewing - need to wrap my head around the signing stuff - but did confirm it works on windows at least!

Copy link
Member

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

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

:shipit: !

@timotheeguerin timotheeguerin added this pull request to the merge queue Feb 7, 2025
Merged via the queue into main with commit 58f9b75 Feb 7, 2025
57 checks passed
@timotheeguerin timotheeguerin deleted the standalone-exe branch February 7, 2025 18:54
dmnorc pushed a commit to dmnorc/typespec that referenced this pull request Feb 18, 2025
fix microsoft#5800
Adds a standalone executable. The way it works is by downloading the
latest compiler and running that.
This is right now the easiest option as it quite a pain to bundle the
package managers.

It comes with 2 command line installer

- install.sh: install on linux/macos
- powershell.ps1 (install on windows)

This right now doesn't work because the latest compiler doesn't have a
dependency on npm lib and expect to find a local `npm` exe which might
not be available if you did only install TypeSpec. SO we need to wait
next release to document it


There is quite a few follow up to work on
1. Add docs (After next release)
2. Include the install script in the website/better url for one
liner(e.g. `curl -fsSL https://typespec.io/install.sh | bash `)
3. Investigate more if we can bundle the cli (without the compiler) and
get rid of this installation step.

---------

Co-authored-by: Christopher Radek <[email protected]>
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.

Standalone TypeSpec
4 participants