Skip to content

Commit e56dcaa

Browse files
authored
Merge branch 'main' into edison/fix/languageTools
2 parents 1731d99 + a3b829f commit e56dcaa

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

tests/vue-macros.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { RunOptions } from '../types.ts'
44
export async function test(options: RunOptions) {
55
await runInRepo({
66
...options,
7-
repo: 'sxzz/unplugin-vue-macros',
7+
repo: 'vue-macros/vue-macros',
88
branch: 'main',
99
build: 'build',
1010
test: ['test:ecosystem'],
11+
overrideVueVersion: '@^3',
1112
})
1213
}

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)