Skip to content

Commit b0d36e3

Browse files
authored
Add typescript as peer dep (#607)
2 parents c28e3a1 + 929fb13 commit b0d36e3

5 files changed

Lines changed: 70 additions & 60 deletions

File tree

.changeset/flat-clouds-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"type-plus": patch
3+
---
4+
5+
Add `typescript` peer dependency (v5.6.0 or higher).

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"rimraf": "^6.0.0",
4040
"turbo": "2.6.3",
4141
"typedoc": "^0.28.16",
42-
"typescript": "^5.6.2",
42+
"typescript": "catalog:",
4343
"vitest": "^4.0.15"
4444
},
45-
"packageManager": "pnpm@10.21.0"
45+
"packageManager": "pnpm@10.28.0"
4646
}

packages/type-plus/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
"size": "size-limit",
6363
"test": "vitest run",
6464
"test:type": "run-p test:type:*",
65-
"test:type:latest": "./node_modules/typescript/bin/tsc --noEmit",
6665
"test:type:54": "./node_modules/ts-5.4/bin/tsc -p tsconfig.ts54.json --noEmit",
6766
"test:type:55": "./node_modules/ts-5.5/bin/tsc -p tsconfig.ts55.json --noEmit",
67+
"test:type:latest": "./node_modules/typescript/bin/tsc --noEmit",
6868
"test:watch": "vitest watch",
6969
"verify": "npm-run-all clean -p build knip lint coverage -p size",
7070
"w": "vitest watch",
@@ -87,7 +87,10 @@
8787
"size-limit": "^11.1.5",
8888
"ts-5.4": "npm:typescript@~5.4.0",
8989
"ts-5.5": "npm:typescript@~5.5.0",
90-
"typescript": "^5.6.2",
90+
"typescript": "catalog:",
9191
"vitest": "^4.0.15"
92+
},
93+
"peerDependencies": {
94+
"typescript": ">= 5.6.0"
9295
}
9396
}

pnpm-lock.yaml

Lines changed: 55 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
packages:
22
- apps/*
33
- packages/*
4+
5+
catalog:
6+
typescript: ~5.6.0

0 commit comments

Comments
 (0)