File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments