Skip to content

Commit 0671e8d

Browse files
committed
chore: rewrite changesets to describe the squashed PR
The old set described intermediate states - a wrangler-config package that was added and reverted within the branch, and a turbo-generators bump for a zod change that only touched the example app. Also adds coverage for the wrangler.jsonc modernization, which no changeset described.
1 parent 4a4c89b commit 0671e8d

19 files changed

Lines changed: 89 additions & 79 deletions

.changeset/gen-cwd-destination.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
'@repo/turbo-generators': minor
33
---
44

5-
feat: create Workers and packages in the current directory when generators run below the workspace root
5+
feat: create new Workers and packages in the current directory
66

7-
The `gen` and `new-package` justfile recipes no longer cd to the workspace root, and generators now derive the destination from the directory they were run from, falling back to `apps/`/`packages/` at the root. Also fixes `new-package` post-generation steps aborting with `ERR_PNPM_VERIFY_DEPS_BEFORE_RUN`: `fixDepsAndFormat` now runs `bun runx fix --deps`, then `pnpm install`, then `bun runx fix --format` (matching the Worker generators), and `pnpmInstall` no longer filters the install to the new package.
7+
The `gen` and `new-package` justfile recipes no longer cd to the workspace root, and generators derive the destination from the directory they were run from, falling back to `apps/`/`packages/` at the root.
8+
9+
Also fixes `new-package` post-generation steps aborting with `ERR_PNPM_VERIFY_DEPS_BEFORE_RUN`: `fixDepsAndFormat` now runs `bun runx fix --deps`, then `pnpm install`, then `bun runx fix --format` (matching the Worker generators), and `pnpmInstall` no longer filters the install to the new package.

.changeset/gen-template-pins.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/new-test-helpers.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/oxlint-drop-dagger-override.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
---
44

55
fix: remove leftover dagger-specific lint override
6+
7+
Nothing in the repo uses dagger, so the `no-unused-vars` override for `**/dagger/**` was dead config.

.changeset/remove-wrapper-bins.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
'@repo/tools': patch
33
'@repo/turbo-generators': patch
4-
'example-worker-echoback': patch
54
---
65

76
chore: remove dead and pass-through bin scripts
87

9-
Deletes `get-version`/`get-branch` (unreferenced) and the `run-vite-*`/`run-vitest-ci` wrappers - scripts now call `vite`/`vitest` directly. Apps and worker templates also ship a `.dev.vars.example` so the `.dev.vars` bootstrap in `runx dev wrangler` actually has something to copy.
8+
Deletes `get-version`/`get-branch` (only used by the removed wrangler deploy bin) and the `run-vite-build`/`run-vite-dev`/`run-vite-preview`/`run-vitest-ci` wrappers - scripts call `vite`/`vitest` directly instead.
9+
10+
The remaining bins were hardened: `run-vitest` runs explicitly in `run` mode with a timeout, `run-tsc` takes a `DISABLE_TSGO` escape hatch, `run-oxlint` takes `FIX_OXLINT`, `run-fix-deps` uses `syncpack fix` (renamed in syncpack 15) and no longer fails when there is nothing to install. Adds `run-vitest-watch`.

.changeset/rename-release-var.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@repo/hono-helpers': minor
3+
'@repo/turbo-generators': patch
4+
'example-worker-echoback': patch
5+
'@repo/tools': patch
6+
---
7+
8+
fix: rename `SENTRY_RELEASE` env var to `RELEASE`
9+
10+
Sentry was never wired up, so the name was misleading. `SharedHonoEnv` now declares `RELEASE`, `runx deploy wrangler` passes `--var RELEASE:<version>`, and the example worker plus all worker templates use the new name. The `// TODO: Capture to Sentry` markers in `withOnError` are still there if you do want Sentry.

.changeset/revert-wrangler-config.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/runx-dev-deploy.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/runx-modernize.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@repo/tools': minor
3+
---
4+
5+
feat: fix package exports and add workspace introspection to runx
6+
7+
The `exports` map pointed at `src/lib/*`, which no longer exists - it now exposes `./path`, `./environment`, `./workspace`, and `./package`. Adds `getWorkspacePackages`, `getWorkspacePackage`, `getWorkersProjects`, and `globProjectFiles` (used by `turbo.config.ts` to derive its build task list), plus a zod-validated `getPackageJson`.
8+
9+
Also anchors `getRepoRoot()` to `import.meta.dirname` so it resolves the same regardless of cwd, runs the workers-types check independently of `--format` and includes it in `runx check` by default, and gives prettier a stable cache location so turbo can cache it.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@repo/tools': minor
3+
'@repo/turbo-generators': patch
4+
'example-worker-echoback': patch
5+
---
6+
7+
feat: move wrangler build/dev/deploy into runx
8+
9+
Replaces the `run-wrangler-build`/`run-wrangler-dev`/`run-wrangler-deploy` shell bins with `runx build wrangler`, `runx dev wrangler`, and `runx deploy wrangler`.
10+
11+
- `build` runs `wrangler deploy --dry-run` with `--minify --outdir ./dist` and reports how long it took
12+
- `dev` builds workspace deps and copies `.dev.vars.example` to `.dev.vars` first, so apps and worker templates now ship a `.dev.vars.example`
13+
- `deploy` derives `RELEASE` from the package version and short git SHA, sets `ENVIRONMENT`, uploads source maps, and retries up to 3 times. `NAME` now comes from `wrangler.jsonc` vars instead of a `--var` flag.

0 commit comments

Comments
 (0)