Skip to content

Commit c985276

Browse files
authored
fix(language-tools): only override vue version >3.5 (#15)
1 parent f7f310c commit c985276

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

tests/language-tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export async function test(options: RunOptions) {
1010
beforeBuild: `pnpm dedupe --registry=${REGISTRY_ADDRESS}`,
1111
build: 'build',
1212
test: 'test',
13+
overrideVueVersion: '>3.5',
1314
})
1415
}

types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface RunOptions {
1313
root: string
1414
vuePath: string
1515
vueVersion: string
16+
overrideVueVersion?: string
1617
verify?: boolean
1718
skipGit?: boolean
1819
release?: string

utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ export async function runInRepo(options: RunOptions & RepoOptions) {
239239
beforeBuild,
240240
beforeTest,
241241
patchFiles,
242+
overrideVueVersion = '',
242243
} = options
243244
const dir = path.resolve(
244245
options.workspace,
@@ -316,7 +317,7 @@ export async function runInRepo(options: RunOptions & RepoOptions) {
316317
} config. Use either one or the other`,
317318
)
318319
} else {
319-
overrides[pkg.name] = version
320+
overrides[`${pkg.name}${overrideVueVersion}`] = version
320321
}
321322
}
322323
} else {

0 commit comments

Comments
 (0)