Skip to content

Commit ff883fe

Browse files
committed
fix(language-tools): use the TS versions from the repo lockfile
1 parent 431bd29 commit ff883fe

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

tests/language-tools.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ export async function test(options: RunOptions) {
1010
beforeBuild: `pnpm dedupe --registry=${REGISTRY_ADDRESS}`,
1111
build: 'build',
1212
test: 'test',
13-
overrideVueVersion: '@^3.5',
13+
overrideVueVersion: '@^3.5.2',
14+
// As of Oct 3 2024, the language-tools repo is using TypeScript 5.5.4 & 5.7.0-dev.20240904,
15+
// while referring to them as `@latest` and `@next` respectively.
16+
// TODO: infer the TypeScript versions from the cloned lockfile.
17+
patchFiles: {
18+
'package.json': (content) => {
19+
const pkg = JSON.parse(content)
20+
pkg.devDependencies.typescript = '~5.5.4'
21+
pkg.devDependencies['typescript-stable'] = 'npm:typescript@~5.5.4'
22+
return JSON.stringify(pkg, null, 2)
23+
},
24+
'test-workspace/package.json': (content) => {
25+
const pkg = JSON.parse(content)
26+
pkg.devDependencies['typescript-stable'] = 'npm:typescript@~5.5.4'
27+
pkg.devDependencies['typescript-next'] =
28+
'npm:typescript@5.7.0-dev.20240904'
29+
return JSON.stringify(pkg, null, 2)
30+
},
31+
},
1432
})
1533
}

0 commit comments

Comments
 (0)