Version Packages - #75
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@cosyte/process@0.0.2
Changelog
All notable changes to
@cosyte/processare documented here, followingKeep a Changelog. Versions are managed with Changesets;
this file is hand-maintained (Changesets' own changelog generation is disabled). The package stays on
the
0.0.x-until-first-alpha ladder.[Unreleased]
Added
build,test,lint,typecheckandformatprintthe single line
cosyte-process <version>to stderr before the tool is spawned, so it precedes thetool's own output and names the
@cosyte/processthat produced the run. The version is read fromthis package's own manifest at run time rather than baked in, so it follows every bump.
checkprints no such line and stdout is untouched.
[0.0.1] - 2026-08-13
Added
First release:
cosyte-process, the shared per-repo process scripts as one bin. Every@cosyte/*parser repo hand-maintains the same fivepackage.jsonscripts, the same four variantscripts, and the tool versions behind them. That is the same copy-per-repo shape
@cosyte/script-utilsremoved from the PHI gate, and it costs the same way: a change to whatlintmeans is thirteen pull requests, and the copies drift in between.A wired consumer's script body is exactly
cosyte-process <verb>forbuild,test,lint,typecheckandformat, and never changes again. What a verb runs, and which version of the toolruns it, moves with a version bump of this package plus
pnpm install.Six verbs and four modifiers.
build,test,lint,typecheckandformatdelegate andpropagate the tool's exit code verbatim;
checkverifies the invoking repo's own wiring. Themodifiers are
test --watch,test --coverage,lint --fixandformat --check, at most one perinvocation.
A token partition, which is what makes the rest well defined. Every invocation splits into
tool, core, flag and glob tokens and is emitted in that order. Core tokens are the mode-selecting
ones (
run,--noEmit,--write) and survive everything, which is why the two substitutingmodifiers always find their target.
cosyte-process.config.json, the one place repo-specific deviation may live. Per verb,globsreplaces that verb's baseline glob tokens and
flagsreplaces its flag tokens. The tool name andcore tokens are never touched,
checkis not overridable, and a modifier composes over theOVERRIDDEN invocation rather than the baseline. Any schema violation makes every verb exit non-zero
naming the file and the first violation, rather than quietly running something else.
The tools are dependencies of this package. tsup, vitest with
@vitest/coverage-v8, eslint,prettier and typescript resolve from here, pinned exactly, so a consumer declares none of them and
a shared upgrade is one version bump. A tool that fails to resolve is reported as a defect in THIS
package's install, never as a missing step in the consumer.
cosyte-process check, for consumer CI. It grades exactly the process wiring: the five verbscripts, any reserved variant scripts that are present (an absent one is conforming), and the
override file. It exits non-zero naming each violation.
Tested against the compatibility floor it claims. node 22.0.x and pnpm 10.0.0, from a packed
tarball installed into a fixture outside this workspace that pins its own
packageManager: pnpm@10.0.0, so config's own pnpm pin is never involved.