Skip to content

Commit

Permalink
fix(language-tools): use the TS versions from the repo lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Oct 3, 2024
1 parent 431bd29 commit ff883fe
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/language-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ export async function test(options: RunOptions) {
beforeBuild: `pnpm dedupe --registry=${REGISTRY_ADDRESS}`,
build: 'build',
test: 'test',
overrideVueVersion: '@^3.5',
overrideVueVersion: '@^3.5.2',
// As of Oct 3 2024, the language-tools repo is using TypeScript 5.5.4 & 5.7.0-dev.20240904,
// while referring to them as `@latest` and `@next` respectively.
// TODO: infer the TypeScript versions from the cloned lockfile.
patchFiles: {
'package.json': (content) => {
const pkg = JSON.parse(content)
pkg.devDependencies.typescript = '~5.5.4'
pkg.devDependencies['typescript-stable'] = 'npm:typescript@~5.5.4'
return JSON.stringify(pkg, null, 2)
},
'test-workspace/package.json': (content) => {
const pkg = JSON.parse(content)
pkg.devDependencies['typescript-stable'] = 'npm:typescript@~5.5.4'
pkg.devDependencies['typescript-next'] =
'npm:[email protected]'
return JSON.stringify(pkg, null, 2)
},
},
})
}

0 comments on commit ff883fe

Please sign in to comment.