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/typescript-7-compat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@labdigital/intl-extractor": minor
---

Use the `@typescript/typescript6` compatibility package for AST parsing instead of the consumer's `typescript` peer dependency. TypeScript 7.0 ships without the classic JavaScript API (`ts.createSourceFile`, `ts.ScriptTarget`, the `is*` node guards), so extraction broke when consumers upgraded. Bundling the stable TS 6.0 API decouples the extractor from the consumer's compiler version and drops the `typescript` peer dependency.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
},
"dependencies": {
"@biomejs/biome": "^2.0.0",
"@typescript/typescript6": "6.0.2",
"glob": "11.1.0",
"yargs": "^18.0.0"
},
"peerDependencies": {
"@parcel/watcher": "2.5.1",
"typescript": ">=5.5"
"@parcel/watcher": "2.5.1"
},
"peerDependenciesMeta": {
"@parcel/watcher": {
Expand Down
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
minimumReleaseAge: 20160
minimumReleaseAgeExclude:
- "@typescript/typescript6"
trustPolicy: no-downgrade
onlyBuiltDependencies:
- '@biomejs/biome'
Expand Down
2 changes: 1 addition & 1 deletion src/extract.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { promises as fsPromises } from "node:fs";
import ts from "typescript";
import ts from "@typescript/typescript6";
import { createScope, type Scope } from "./scope";

export async function extractLabelsFromFile(filePath: string) {
Expand Down
Loading