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

build: prebuild executable for environments. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morganney
Copy link

This adds the executable to your package when used by consumers and creates a separate dev script to run for maintainers. Before publishing to npm you would run npm pack which sets the NODE_ENV variable to production, and for maintainers they would run npm run dev which sets NODE_ENV=development.

The prebuild.ts script can then use the value of NODE_ENV to determine which executable to download.

@ptvty
Copy link
Owner

ptvty commented May 1, 2024

How did you find the repo @morganney ? 😅
Really appreciate it! I'm looking into it.

@morganney
Copy link
Author

@ptvty you shared a link to your GitHub profile and most people on SO are asking about projects they’re currently working on.

I enjoy working on problem solving so it was a good way to pass time 😄

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.

None yet

2 participants