Repository navigation
0.18.1
What changed
scripts/kit-check.mjs accepts a copy Launch has provisioned, and no config test judges the checkout it runs in, so a copy whose tomls carry Launch's real KV ids passes its own Gate.
scripts/kit-check.mjs→ in the kit every KV id is a<PLACEHOLDER>; in a copy an id may be a placeholder or real;--provisionedstill wants real ids (docs/CONCEPTS.md§13).apps/web/tests/config/kit-check.test.ts→ every case on a fixture kit, fresh and provisioned the way Launch'swrite_configdoes it (tests/config/fixtures/kit-fixture.mjs, shared with the meta-kit).apps/web/tests/config/launch-kit-manifest.test.ts→ the shape cases on the fixture's manifest; the checks of this kit's own manifest values move totests/kit-only/launch-kit-manifest.test.ts.apps/web/tests/config/kit-check-parsers.test.ts→ inline documents only; parsing the kit's own tomls and workflows moves totests/kit-only/kit-files-parse.test.ts.apps/web/tests/config/patch-toml.test.ts→ runs on a snapshot of the shipped tomls (tests/config/fixtures/wrangler{,.staging}.toml), whichtests/kit-only/patch-toml-shipped.test.tsholds equal to the kit's.
How to apply
- Copy
scripts/kit-check.mjsandscripts/kit-check.d.mtsfrom the kit over your own; neither names the app. - Copy
apps/web/tests/config/fixtures/kit-fixture.mjsandapps/web/tests/config/fixtures/kit-fixture.d.mtsfrom the kit into the same paths. - Copy
apps/web/tests/config/kit-check.test.ts,apps/web/tests/config/kit-check-parsers.test.tsandapps/web/tests/config/launch-kit-manifest.test.tsfrom the kit over your own. - Copy
apps/web/tests/config/patch-toml.test.tsfrom the kit over your own, and copy the kit's UNPROVISIONEDapps/web/wrangler.tomlandapps/web/wrangler.staging.toml(the release tag's, renamed to your app the waykit:upgraderenames any file) toapps/web/tests/config/fixtures/wrangler.tomlandapps/web/tests/config/fixtures/wrangler.staging.toml, each with the kit snapshot's two-line# FIXTUREheader. Never copy your provisioned tomls there. - Do not copy anything under
apps/web/tests/kit-only/: those tests are the kit's own, and a copy runs none of them. - Leave your own
apps/web/wrangler.tomlandapps/web/wrangler.staging.tomlas they are: real KV ids are now valid in a copy.
Conflicts to expect
apps/web/tests/config/patch-toml.test.ts→ reads./fixtures/instead of the tomls on disk → take the kit's file whole.apps/web/tests/config/launch-kit-manifest.test.ts→ the live-file half moved to kit-only → take the kit's file whole.
Verify
node scripts/kit-check.mjsprints✔ conforms to the Launch kit contract (schema 1)and exits 0.- Once Launch has provisioned the app,
node scripts/kit-check.mjs --provisionedexits 0. pnpm --filter ./apps/web test:configpasses.pnpm gatepasses.