-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-tools): use the TS versions from the repo lockfile
- Loading branch information
1 parent
431bd29
commit ff883fe
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
}, | ||
}, | ||
}) | ||
} |