@vscode/vsce
Advanced tools
Comparing version 2.16.0 to 2.17.0
@@ -37,3 +37,7 @@ "use strict"; | ||
function listFiles(options = {}) { | ||
return (0, package_1.listFiles)(options); | ||
return (0, package_1.listFiles)({ | ||
...options, | ||
useYarn: options.packageManager === PackageManager.Yarn, | ||
dependencies: options.packageManager !== PackageManager.None, | ||
}); | ||
} | ||
@@ -40,0 +44,0 @@ exports.listFiles = listFiles; |
@@ -879,7 +879,23 @@ "use strict"; | ||
} | ||
(0, validation_1.validateEngineCompatibility)(manifest.engines['vscode']); | ||
const engineVersion = manifest.engines['vscode']; | ||
(0, validation_1.validateEngineCompatibility)(engineVersion); | ||
const hasActivationEvents = !!manifest.activationEvents; | ||
const hasImplicitActivationEvents = manifest.contributes?.commands || | ||
manifest.contributes?.authentication || | ||
manifest.contributes?.languages || | ||
manifest.contributes?.customEditors || | ||
manifest.contributes?.views; | ||
const hasMain = !!manifest.main; | ||
const hasBrowser = !!manifest.browser; | ||
if (hasActivationEvents) { | ||
let parsedEngineVersion; | ||
try { | ||
const engineSemver = (0, parse_semver_1.default)(`vscode@${engineVersion}`); | ||
parsedEngineVersion = engineSemver.version; | ||
} | ||
catch (err) { | ||
throw new Error('Failed to parse semver of engines.vscode'); | ||
} | ||
if (hasActivationEvents || | ||
((engineVersion === '*' || semver.satisfies(parsedEngineVersion, '>=1.74', { includePrerelease: true })) && | ||
hasImplicitActivationEvents)) { | ||
if (!hasMain && !hasBrowser) { | ||
@@ -886,0 +902,0 @@ throw new Error("Manifest needs either a 'main' or 'browser' property, given it has a 'activationEvents' property."); |
{ | ||
"name": "@vscode/vsce", | ||
"version": "2.16.0", | ||
"version": "2.17.0", | ||
"description": "VSCode Extension Manager", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149880
3050