We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
antfu
Learn more about funding links in repositories.
Report abuse
1 parent a778512 commit 13dcf44Copy full SHA for 13dcf44
src/addons/vscode.ts
@@ -10,6 +10,11 @@ export const addonVSCode: Addon = {
10
return
11
}
12
13
+ const minEngineVersion = semver.minVersion(pkg.raw.engines.vscode)
14
+ if (!minEngineVersion) {
15
+ return
16
+ }
17
+
18
const version: string = pkg.raw.dependencies?.['@types/vscode']
19
|| pkg.raw.devDependencies?.['@types/vscode']
20
|| pkg.raw.peerDependencies?.['@types/vscode']
@@ -20,7 +25,7 @@ export const addonVSCode: Addon = {
25
21
26
22
27
23
- if (version && semver.gt(version, pkg.raw.engines.vscode)) {
28
+ if (version && semver.gt(version, minEngineVersion)) {
24
29
// eslint-disable-next-line no-console
30
console.log(`[taze addon] Updated VS Code engine field to ${version}`)
31
// If the version is not a range (fixed version), we prepend it with a caret
0 commit comments