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
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:

concurrency:
cancel-in-progress: true
group: ${{ github.head_ref }}
group: pr-${{ github.event.pull_request.number }}

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24, 25]
node-version: [20, 22, 24, 26]
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/install
Expand Down
42 changes: 16 additions & 26 deletions .pnp.cjs

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

Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"js-yaml": "4.2.0",
"json-schema-to-typescript": "15.0.4",
"lodash": "4.18.1",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1",
"yargs": "18.0.0",
"zod": "4.4.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/generator/src/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export function isBuiltInType(type: Type) {
.getSymbolOrThrow()
.getDeclarations()
.some((d) => {
if (d.getSourceFile().compilerNode.hasNoDefaultLib) {
const program = d.getProject().getProgram().compilerObject
if (program.isSourceFileDefaultLibrary(d.getSourceFile().compilerNode)) {
const name = type.getSymbolOrThrow().getName()
const parent = d.getParentOrThrow()
const siblings = (
Expand Down
2 changes: 1 addition & 1 deletion packages/io-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@runtyping/generator": "workspace:*",
"@ts-morph/common": "0.29.0",
"title-case": "4.3.2",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1"
}
}
2 changes: 1 addition & 1 deletion packages/runtypes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@runtyping/generator": "workspace:*",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1"
}
}
2 changes: 1 addition & 1 deletion packages/test-type-writers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"assert-never": "1.4.0",
"mkdirp": "3.0.1",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1"
}
}
2 changes: 1 addition & 1 deletion packages/valibot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@runtyping/generator": "workspace:*",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1"
}
}
2 changes: 1 addition & 1 deletion packages/yup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@runtyping/generator": "workspace:*",
"@ts-morph/common": "0.29.0",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"ts-toolbelt": "9.6.0",
"tslib": "2.8.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/zod-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@runtyping/generator": "workspace:*",
"title-case": "4.3.2",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/zod-mini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@runtyping/generator": "workspace:*",
"@runtyping/zod-core": "workspace:*",
"title-case": "4.3.2",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1"
}
}
2 changes: 1 addition & 1 deletion packages/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@runtyping/generator": "workspace:*",
"@runtyping/zod-core": "workspace:*",
"title-case": "4.3.2",
"ts-morph": "27.0.2",
"ts-morph": "28.0.0",
"tslib": "2.8.1"
}
}
41 changes: 15 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ __metadata:
lodash: "npm:4.18.1"
prettier: "npm:3.8.3"
rimraf: "npm:6.1.3"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
typescript-json-schema: "npm:0.67.4"
Expand All @@ -636,7 +636,7 @@ __metadata:
io-ts: "npm:2.2.22"
rimraf: "npm:6.1.3"
title-case: "npm:4.3.2"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
vitest: "npm:4.1.8"
Expand Down Expand Up @@ -686,7 +686,7 @@ __metadata:
"@types/node": "npm:24.12.4"
rimraf: "npm:6.1.3"
runtypes: "npm:7.0.4"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
vitest: "npm:4.1.8"
Expand All @@ -709,7 +709,7 @@ __metadata:
assert-never: "npm:1.4.0"
mkdirp: "npm:3.0.1"
rimraf: "npm:6.1.3"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
type-fest: "npm:5.7.0"
typescript: "npm:6.0.3"
Expand All @@ -730,7 +730,7 @@ __metadata:
"@types/json-schema": "npm:7.0.15"
"@types/node": "npm:24.12.4"
rimraf: "npm:6.1.3"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
valibot: "npm:1.4.1"
Expand All @@ -752,7 +752,7 @@ __metadata:
"@types/json-schema": "npm:7.0.15"
"@types/node": "npm:24.12.4"
rimraf: "npm:6.1.3"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
ts-toolbelt: "npm:9.6.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
Expand All @@ -772,7 +772,7 @@ __metadata:
dependencies:
"@runtyping/generator": "workspace:*"
title-case: "npm:4.3.2"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
zod: "npm:4.4.3"
Expand All @@ -792,7 +792,7 @@ __metadata:
"@types/node": "npm:24.12.4"
rimraf: "npm:6.1.3"
title-case: "npm:4.3.2"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
vitest: "npm:4.1.8"
Expand All @@ -815,7 +815,7 @@ __metadata:
"@types/node": "npm:24.12.4"
rimraf: "npm:6.1.3"
title-case: "npm:4.3.2"
ts-morph: "npm:27.0.2"
ts-morph: "npm:28.0.0"
tslib: "npm:2.8.1"
typescript: "npm:6.0.3"
vitest: "npm:4.1.8"
Expand Down Expand Up @@ -857,7 +857,7 @@ __metadata:
languageName: node
linkType: hard

"@ts-morph/common@npm:0.29.0":
"@ts-morph/common@npm:0.29.0, @ts-morph/common@npm:~0.29.0":
version: 0.29.0
resolution: "@ts-morph/common@npm:0.29.0"
dependencies:
Expand All @@ -868,17 +868,6 @@ __metadata:
languageName: node
linkType: hard

"@ts-morph/common@npm:~0.28.1":
version: 0.28.1
resolution: "@ts-morph/common@npm:0.28.1"
dependencies:
minimatch: "npm:^10.0.1"
path-browserify: "npm:^1.0.1"
tinyglobby: "npm:^0.2.14"
checksum: 10/d5c6ed11cf046c186c7263c28c7e9b5fbefb61c65b99f66cfe6a3b249f70f3fbf116b5aace2980602a7ceabecdc399065d5a7f14aabe5475eb43fd573a3cc665
languageName: node
linkType: hard

"@tsconfig/node10@npm:^1.0.7":
version: 1.0.8
resolution: "@tsconfig/node10@npm:1.0.8"
Expand Down Expand Up @@ -5003,13 +4992,13 @@ __metadata:
languageName: node
linkType: hard

"ts-morph@npm:27.0.2":
version: 27.0.2
resolution: "ts-morph@npm:27.0.2"
"ts-morph@npm:28.0.0":
version: 28.0.0
resolution: "ts-morph@npm:28.0.0"
dependencies:
"@ts-morph/common": "npm:~0.28.1"
"@ts-morph/common": "npm:~0.29.0"
code-block-writer: "npm:^13.0.3"
checksum: 10/b9bd8ed86d4b76ca23446d3f808787cfe95a3bcb2316769a2f3fa262ea9ab4043bb76bf8aef677f9be0d758576f074df2926e701a535f84fd21946fdbf465148
checksum: 10/fb5541c2c5b25386ae85346203046cc136d4afa2821a9b7b5ea9ffdbcff6d8867eccf98a3d7d50dd86f64428f80cf4ae9e609bd8f02f99cef902ba2760ecd5d9
languageName: node
linkType: hard

Expand Down