Skip to content

Commit 0efd64f

Browse files
committed
chore(deps): bump typescript to v6
1 parent 4789ee5 commit 0efd64f

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"rollup": "^4.53.3",
7373
"terser": "^5.44.1",
7474
"tslib": "^2.8.1",
75-
"typescript": "5.8.2",
75+
"typescript": "~6.0.0-0",
7676
"typescript-eslint": "8.48.1",
7777
"vitest": "4.0.15"
7878
},

packages/@lwc/template-compiler/src/parser/index.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,22 @@ import type {
8989
} from '../shared/types';
9090
import type State from '../state';
9191
import type { Token as parse5Token } from 'parse5';
92-
import type { Location } from 'parse5/dist/common/token';
92+
93+
/** Copied from `parse5/dist/common/token.d.ts` because it's not exported at the top level. */
94+
interface Location {
95+
/** One-based line index of the first character. */
96+
startLine: number;
97+
/** One-based column index of the first character. */
98+
startCol: number;
99+
/** Zero-based first character index. */
100+
startOffset: number;
101+
/** One-based line index of the last character. */
102+
endLine: number;
103+
/** One-based column index of the last character. Points directly *after* the last character. */
104+
endCol: number;
105+
/** Zero-based last character index. Points directly *after* the last character. */
106+
endOffset: number;
107+
}
93108

94109
function attributeExpressionReferencesForOfIndex(attribute: Attribute, forOf: ForOf): boolean {
95110
const { value } = attribute;

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"declarationMap": true,
77
"sourceMap": true,
88

9-
"module": "commonjs",
10-
"moduleResolution": "node",
9+
"module": "preserve",
10+
"moduleResolution": "bundler",
1111
"esModuleInterop": true,
1212

1313
"target": "es2021",

yarn.lock

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,9 +1853,11 @@
18531853

18541854
"@lwc/eslint-plugin-lwc-internal@link:./scripts/eslint-plugin":
18551855
version "0.0.0"
1856+
uid ""
18561857

18571858
"@lwc/test-utils-lwc-internals@link:./scripts/test-utils":
18581859
version "0.0.0"
1860+
uid ""
18591861

18601862
"@napi-rs/[email protected]":
18611863
version "0.2.4"
@@ -11787,10 +11789,10 @@ [email protected]:
1178711789
"@typescript-eslint/typescript-estree" "8.48.1"
1178811790
"@typescript-eslint/utils" "8.48.1"
1178911791

11790-
typescript@5.8.2:
11791-
version "5.8.2"
11792-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4"
11793-
integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==
11792+
typescript@~6.0.0-0:
11793+
version "6.0.0-dev.20251210"
11794+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-6.0.0-dev.20251210.tgz#c3b00ab80013d73c120a7c033826b258309a46cb"
11795+
integrity sha512-IrJNDyAX7sgCsT+65JI8ymvq1Zm9bvioxnN8+F/LCtAQOpv3uWKVH7JbtLOEbi8+4W2HOut43A+z/MFn5m8F7A==
1179411796

1179511797
typical@^4.0.0:
1179611798
version "4.0.0"

0 commit comments

Comments
 (0)