Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tsrs-0-20.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stll/oxlint-config": patch
---

Move to tsrs 0.20.1, which publishes Intel macOS and Windows x64 binaries, and read its Node API from `tsrs/async` instead of the removed `tsrs/unstable/async` path.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ Every repository that uses these configs follows one toolchain:
them points tsdown at tsrs instead:
`dts: { generator: "tsgo", tsgo: { path: <tsrs bin> } }`.
- **Compiler-API code does not import `typescript`.** Programs, the type
checker and tsconfig resolution use `tsrs` `0.18.0-ts7.1.0-dev.20260929`
through its async API only (`import { API } from "tsrs/unstable/async"`; close
checker and tsconfig resolution use `tsrs` `0.20.1-ts7.1.0-beta`
through its async API only (`import { API } from "tsrs/async"`; close
the API with `await api.close()` on every path). The `tsrs` CLI accepts
`--noEmit`, `--pretty false`, `-p`, `--build --force`, `--listFilesOnly`,
`--extendedDiagnostics` and `--declaration --emitDeclarationOnly --outDir`;
Expand Down
18 changes: 11 additions & 7 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions bunfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# 5-day quarantine: reject fresh package versions to reduce supply-chain risk.
minimumReleaseAge = 432000
# stll-quarantine --sync maintains exact permanent first-party exemptions.
# bun-types ships only declarations and must match the pinned Bun runtime.
minimumReleaseAgeExcludes = [
"@stll/time", # quarantine-excluded-since: 2026-10-17T13:44:24.000Z
"bun-types", # quarantine-expires: 2026-10-27T10:17:50.170Z
]

[fmt]
Expand Down
2 changes: 1 addition & 1 deletion packages/oxlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"picomatch": "4.0.7",
"semver": "7.8.5",
"smol-toml": "1.9.1",
"tsrs": "0.18.0-ts7.1.0-dev.20260929",
"tsrs": "0.20.1-ts7.1.0-beta",
"tsx": "4.23.15",
"yaml": "2.9.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/oxlint-config/src/node-script-types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { createRequire } from "node:module";
import { tmpdir } from "node:os";
import path from "node:path";
import { API } from "tsrs/unstable/async";
import { API } from "tsrs/async";

const require = createRequire(import.meta.url);
const configDirectory = path.resolve(
Expand Down
3 changes: 1 addition & 2 deletions packages/oxlint-config/src/toolchain-node-projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ type ProjectConfig = {
const resolveProjectApi = (root: string) => {
for (const base of [import.meta.url, path.join(root, "package.json")])
try {
return pathToFileURL(createRequire(base).resolve("tsrs/unstable/async"))
.href;
return pathToFileURL(createRequire(base).resolve("tsrs/async")).href;
} catch (error) {
const code = record(error) ? error["code"] : undefined;
if (code !== "MODULE_NOT_FOUND" && code !== "ERR_MODULE_NOT_FOUND")
Expand Down
Loading