Repository navigation
chore: adopt @cosyte/process and the shared config packages - #90
Merged
Merged
Conversation
Move build, test, lint, typecheck and format onto the shared @cosyte/process 0.1.6 and take the held dev-toolchain and Dependabot updates in the same pass: fast-check 4, vite 8, attw 0.18.5, vitest 5.1.0, prettier 3.9.10, setup-node 7.1.0 (supersedes #61). The JavaScript is byte-identical; the type declarations split type-only exports into their own statement, so a patch changeset is included. Claude-Session: https://claude.ai/code/session_01MXLcW95gf97vs9RBU1YsXf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We move transform onto the shared
@cosyte/process(0.1.7) and the shared config packages from cosyte/config, and take the repository's held Dependabot and dev-toolchain updates in the same pass.What changed
build,typecheck,lint,lint:fix,format,format:check,test,test:watchandtest:coverageare now exactlycosyte-process <verb>.check:process(cosyte-process check) is new and runs in the requiredstandardsjob, so a test script body can no longer narrow which suites run without CI noticing (the banners inci.ymlandvitest.config.tssay so now).cosyte-process.config.jsonkeeps this repository's widerformatglobs (examples/**/*.{ts,js,json,md}). Thelintglobs equal process's baseline, so they need no override.typecheck:examplesandlint:examplesrun process's owntscandeslintthroughscripts/process-tool.mjs(the x12 helper): the examples import the built package, so they cannot fold into the verbs CI runs before the build. Both stay in the requiredexamplesjob; we checkedtypecheck:examplesgoes red on an injected type error.versionischangeset version && cosyte-process sync-version && cosyte-process format, andpack:docsiscosyte-process pack-docs(same archive members as before).scripts/sync-version.mjsandscripts/build-docs-artifacts.share removed.tsup,eslint,@vitest/coverage-v8,typescript(nothing here imports the compiler API). Kept and pinned to process's versions:vitest5.1.0 (the tests import it) andprettier3.9.10 (changeset versionformatsCHANGELOG.mdwith the prettier it resolves from the repository root, and the changelog test imports it). Dependabot now leaves both to move with process.@cosyte/process ^0.1.7added; floors moved toeslint-config ^0.1.4,tsup-config ^0.1.3,script-utils ^0.1.8,test-utils ^0.1.3and^0.1.2/^0.1.3for the rest. The publishedpeerDependencies(@cosyte/fhir ^0.1.0,@cosyte/hl7 ^0.1.0) are unchanged."esbuild@>=0.27.3 <0.28.2": "0.28.2", matching config's drift manifest.@arethetypeswrong/cli0.18.5, tsx 4.23.15, simple-git-hooks 2.14.0. Prettier 3.9.10 reformats four test and script files.@cosyte/test-utils: the issue-code tripwire now usessortedCodeSetinstead of a localObject.values(...).sort(). The rest of the property suites are transform-specific (sentinel checks over issues, bundle references, emit validity); nothing else in test-utils matches them.vitest.config.tsdropsglobals: false,environment: "node"andhookTimeout: 10_000(vitest's defaults) and comments the remainingincludeandtestTimeout.test/scripts/changelog-generation.test.tsreads the format globs fromcosyte-process.config.jsoninstead of the old script bodies.enginesstays>=22.0.0. CI's"22"already resolves to a newer 22.x.Published files
Same file list.
index.mjsandindex.cjsare byte-identical to main.index.d.tsandindex.d.ctsdiffer in two places: tsup 9 writes the type-only exports as a separateexport type { ... }statement (the 135 exported names and which are type-only are identical), and theVERSIONdoc comment namescosyte-process sync-version. The source maps differ only in that comment's embedded source.attwpasses. A patch changeset covers it.Gate
Full gate run locally on Node 26 with pnpm 10.34.5 after a clean install: typecheck, lint, format:check, phi-scan, test (856 passed, as on main), test:coverage (same thresholds), build, attw, typecheck:examples, lint:examples, examples, phi-scan:examples, check:readme, check:claude-card, check:catalog, check:process, check:no-emdash, check:no-internal-refs. All green. No required check context changes.
Dependabot
registry-urlin these jobs); #61 closedAdded the
@types/nodemajor ignore, which was missing. Held, as across the libraries: changesets 3 (separate task), TypeScript 7 (stays with process),@types/nodemajors (stay on 22).https://claude.ai/code/session_01MXLcW95gf97vs9RBU1YsXf