Skip to content
Closed
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
3 changes: 2 additions & 1 deletion generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"devDependencies": {
"@types/lodash": "4.17.21",
"@types/mustache": "4.2.6",
"@types/prompts": "2.4.9"
"@types/prompts": "2.4.9",
"typescript": "6.0.3"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"prettier": "3.7.4",
"prettier-jest": "npm:prettier@3.7.4",
"tsc-files": "1.1.4",
"typescript": "5.9.3"
"typescript": "7.0.2"
},
"packageManager": "pnpm@11.10.0"
}
579 changes: 398 additions & 181 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,32 @@ allowBuilds:
esbuild: false
sharp: false
unrs-resolver: false

# TypeScript 7.0 dropped the classic JS "Strada" Program/type-checker API that
# ships as the `typescript` package's public surface (only version metadata is
# exported now). `typescript-eslint` v5 (pulled in transitively via
# @commercetools-frontend/eslint-config-mc-app) still calls into that classic
# API (e.g. `ts.TypeFlags`) for type-aware lint rules, so it must resolve an
# older, API-compatible TypeScript instead of the repo's TS 7 devDependency.
# 6.0.3 is the last TypeScript release built on the classic JS compiler.
# `typescript` is declared as an *optional peer* (`typescript: '*'`) on these
# packages, so a plain `overrides` entry doesn't pin it (peers are resolved
# from the nearest matching instance in the graph, not from overrides).
# `packageExtensions` promotes it to a hard dependency instead, which pnpm
# always honors.
packageExtensions:
'@typescript-eslint/eslint-plugin@5.62.0':
dependencies:
typescript: '6.0.3'
'@typescript-eslint/parser@5.62.0':
dependencies:
typescript: '6.0.3'
'@typescript-eslint/type-utils@5.62.0':
dependencies:
typescript: '6.0.3'
'@typescript-eslint/typescript-estree@5.62.0':
dependencies:
typescript: '6.0.3'
'@typescript-eslint/utils@5.62.0':
dependencies:
typescript: '6.0.3'
3 changes: 3 additions & 0 deletions standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,8 @@
"@types/lodash": "4.17.21",
"lodash": "4.17.23",
"omit-deep": "0.3.0"
},
"devDependencies": {
"typescript": "6.0.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('CustomLineItemDraft compatibility builders', () => {
it('builds a GraphQL model', () => {
const customLineItemDraftGraphql = CustomLineItemDraft.random()
.custom(CustomFieldBooleanType.random())
.buildGraphql();
.buildGraphql<TCustomLineItemDraftGraphql>();
validateGraphqlFields(customLineItemDraftGraphql);
});
});
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"isolatedModules": true,
"resolveJsonModule": true,
"allowJs": false,
// TypeScript 6.0+ defaults `types` to `[]` instead of auto-discovering every
// package under node_modules/@types. Our spec files rely on Jest's ambient
// globals (describe/it/expect) and @types/node globals, so list them explicitly.
"types": ["jest", "node"],
"paths": {
"@/core": ["./standalone/src/core"],
"@/core/test-utils": ["./standalone/src/core/test-utils"],
Expand Down
Loading