Repository navigation
test: set the jsonv-dev condition with devCondition() and drop the no-op test.nodeOptions - #121
Merged
Merged
Conversation
…-op test.nodeOptions test.nodeOptions isn't a Vitest option. devCondition() from @cldmv/configs sets resolve/ssr conditions and test.execArgv.
Shinrai
approved these changes
Nov 5, 2026
cldmv-bot Bot
added a commit
that referenced
this pull request
Nov 7, 2026
# `@cldmv/jsonv` v1.2.2 Changelog **Release Date**: November 2026 **Release Type**: Patch **Branch**: `release/1.2.2` --- ## Overview v1.2.2 is a development-tooling release. The test config now resolves the package through the `jsonv-dev` export condition the way it was meant to, and the type scripts use the fleet names `types:check` and `types:build`. No library code changed. The parser and every public specifier are the same as in v1.2.1, and nothing changes for anyone installing the package. --- ## 🔧 CI & tooling ### Tests run against `src/` through `devCondition()` ([#121](#121)) `.configs/vitest.config.mjs` set `test.nodeOptions` to pass `--conditions=jsonv-dev` to the test workers, but vitest has no such option, so the condition never reached them. The config now builds on `devCondition()` from `@cldmv/configs` (bumped to `^1.4.0`), which sets the resolver conditions and the worker `execArgv`, so Node's own resolver picks `src/` through the `jsonv-dev` export condition too. ### Type scripts renamed to `types:check` and `types:build` ([#123](#123)) - `test:types` is now `types:check` (`tsc --noEmit` on `.configs/tsconfig.build.json`), and CI's type-check step runs it. - `build:types` is now `types:build`, which emits the declarations. `npm run build` and the comment in `tsup.config.mjs` use the new name. ## 📚 Documentation - **NEW:** [docs/changelog/v1/v1.2.2.md](./v1.2.2.md) — this changelog. - README What's New promoted to v1.2.2. ## 🔧 Dependencies - `@cldmv/configs` ^1.3.0 → ^1.4.0, for `devCondition()` ([#121](#121)). Development dependency only. --- ## Upgrade notes - No breaking changes — drop-in for v1.2.1. No library code changed. - If you run `npm run test:types` or `npm run build:types` locally or in your own scripts, use `types:check` and `types:build`. <details> <summary>👥 Contributors</summary> - @Shinrai </details> --- <!-- coverage-start -->  | Metric | Coverage | |--------|----------| | Statements | 98.7% | | Branches | 97.3% | | Functions | 100.0% | | Lines | 98.8% | *Avg: **98.7%** · `dcde5e4` · Node lts/** <!-- coverage-end --> <!-- co-authors --> Co-authored-by: Shinrai <[email protected]>
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.
test.nodeOptions isn't a Vitest option, so the jsonv-dev condition never reached the workers. devCondition() from @cldmv/configs 1.4.0 sets the resolve/ssr conditions and test.execArgv.