🚀 Feature: Set static version to cli when building #1485
Labels
area: cli
Related to the command line (CLI)
area: tooling
Managing the repository's maintenance 🛠️
status: in discussion
Not yet ready for implementation or a pull request
Bug Report Checklist
main
branch of the repository.Overview
I'm proposing that
version
would be set on compile time torunCli
. This would remove need for reading one more file when running the tool. The version should not change between runs. :)This can be done either by custom esbuild plugin or using some existing esbuild plugin. tsup should support them:
One example plugin
Additional Info
Custom plugin could look like this for example:
And then we refer to the environment variable in
runCli.ts
:In the output
rucCli.js
file, this is justThe text was updated successfully, but these errors were encountered: