-
Notifications
You must be signed in to change notification settings - Fork 195
Description
It would be great if you added tbls to the npm registry as a cli package.
This would allow tbls to be used in node projects with version control and without unnecessary complications in ci and for developers (one developer may have one version, another may have another, and confusion arises).
How to do this is described here:
https://dev.to/nausaf/creating-an-npm-package-that-runs-on-command-line-with-npx-9a0
or here
https://kuldeepdev407.medium.com/how-to-create-a-npm-cli-application-package-e940e1da70f5
In the “bin” field, it is not necessary to specify a link to the .js file; you can link directly to the binary. However, js is desirable for passing the correct binary to different operating systems.
Also, to avoid compiling binaries for different architectures (which increases the package size and makes it difficult for some users to navigate releases), you can disable linking in go-lang. This will allow to use a library compiled on AMD on ARM and vice versa.
(I don't know how it works in your CI, but with go install you can pass env CGO_ENABLED=0 for this).