Skip to content

Commit

Permalink
fix(language-tools): only override vue version >3.5 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored Sep 9, 2024
1 parent f7f310c commit c985276
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/language-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export async function test(options: RunOptions) {
beforeBuild: `pnpm dedupe --registry=${REGISTRY_ADDRESS}`,
build: 'build',
test: 'test',
overrideVueVersion: '>3.5',
})
}
1 change: 1 addition & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface RunOptions {
root: string
vuePath: string
vueVersion: string
overrideVueVersion?: string
verify?: boolean
skipGit?: boolean
release?: string
Expand Down
3 changes: 2 additions & 1 deletion utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export async function runInRepo(options: RunOptions & RepoOptions) {
beforeBuild,
beforeTest,
patchFiles,
overrideVueVersion = '',
} = options
const dir = path.resolve(
options.workspace,
Expand Down Expand Up @@ -316,7 +317,7 @@ export async function runInRepo(options: RunOptions & RepoOptions) {
} config. Use either one or the other`,
)
} else {
overrides[pkg.name] = version
overrides[`${pkg.name}${overrideVueVersion}`] = version
}
}
} else {
Expand Down

0 comments on commit c985276

Please sign in to comment.