Rewrite the CLI in Go #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/rewrite-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces the TypeScript CLI with a Go one at
cmd/push.There is no Node left in the repository. A fresh clone builds both binaries with
go buildand no npm step.What changed
cmd/push— the CLI, ported file for file frompackages/cli/src. Prompts usecharmbracelet/huh, the only new direct dependency.packages/cli— the TypeScript source,tsconfig.json,package.json, the pnpm lock file and the prettier and oxlint configs are gone.README.mdandLICENSEstay for the npm package.checks-cli.yml— gone.checks-go.ymlalready coverscmd/**.New behaviour
node_modules/expois missing, instead of lettingexpo exportfail with a bundler error. It reads the lock file to pick between pnpm, yarn, bun and npm.checkExportreads the export withinternal/expo.ReadMetadata, the same parser the server uses, and names any bundle thatmetadata.jsonpromises but did not write.readAppConfigrunsnpx --no-install. Without it, a project with nonode_moduleswaits a minute for a download before falling back toapp.json.Not in this PR
The npm release.
npx @uwayss/bareedstill installs the old TypeScript version until the seven prebuilt-binary packages are published.Checks
gofmt,go vetandgo testall pass. The upload was tested against a running server, which accepted the archive and served a valid manifest from it.