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

Compile TypeScript #17

Merged
merged 6 commits into from
Nov 4, 2023
Merged

Compile TypeScript #17

merged 6 commits into from
Nov 4, 2023

Conversation

stevehanson
Copy link

@stevehanson stevehanson commented Nov 3, 2023

Compiling the TypeScript before we publish to NPM makes it so that consumers of this CLI do not need to have TypeScript installed and compiled at run-time. This simplifies the code that is run on client machines. Additionally, this fixes an issue where the CLI was failing to run on Node 20.

For this PR, inspiration was taken from create-t3-app.

This PR has been published already to NPM and can be installed with yarn add thoughtbelt@beta.

@stevehanson stevehanson changed the title Compile TypeScript for npm package Compile TypeScript Nov 3, 2023
@stevehanson stevehanson merged commit 0af3974 into main Nov 4, 2023
2 checks passed
@stevehanson stevehanson deleted the tsup branch November 4, 2023 18:30
@stevehanson stevehanson mentioned this pull request Dec 11, 2023
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.

1 participant