diff options
| author | Joe Mou <dev@mou.fo> | 2026-08-11 08:37:25 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-08-11 08:38:30 -0400 |
| commit | d76a46b37b12823b5b3976d129c2d4b672a99693 (patch) | |
| tree | 5640077c30a71ac8eccdc66925a82e112aa45963 /package.json | |
| parent | de557ad66466261ae578ea9342f32d78a139fbc9 (diff) | |
Show the build's commit in the page footer
Workers can't shell out at request time, so the commit has to be baked
in before wrangler bundles the sources. compile-views.ts grows a second
job and becomes scripts/build.ts: alongside the precompiled views it
writes src/commit.generated.ts with `git describe --tags --always
--dirty`, which yields a bare short hash until the repo is tagged and
marks builds made from an unclean working copy.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json index 337fabc..7673612 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "license": "MIT", "type": "module", "scripts": { - "dev": "node scripts/compile-views.ts && wrangler dev", - "deploy": "node scripts/compile-views.ts && wrangler deploy", + "dev": "node scripts/build.ts && wrangler dev", + "deploy": "node scripts/build.ts && wrangler deploy", "test": "node --test --test-concurrency=4 src/scraper.test.ts" }, "dependencies": { |
