@vscode/vsce 2.19.0 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/package.js +2 -2
- package/out/publish.js +4 -3
- package/package.json +2 -2
package/out/package.js
CHANGED
|
@@ -648,8 +648,8 @@ class LicenseProcessor extends BaseProcessor {
|
|
|
648
648
|
this.didFindLicense = false;
|
|
649
649
|
const match = /^SEE LICENSE IN (.*)$/.exec(manifest.license || '');
|
|
650
650
|
if (!match || !match[1]) {
|
|
651
|
-
this.expectedLicenseName = 'LICENSE
|
|
652
|
-
this.filter = name => /^extension\/
|
|
651
|
+
this.expectedLicenseName = 'LICENSE, LICENSE.md, or LICENSE.txt';
|
|
652
|
+
this.filter = name => /^extension\/licen[cs]e(\.(md|txt))?$/i.test(name);
|
|
653
653
|
}
|
|
654
654
|
else {
|
|
655
655
|
this.expectedLicenseName = match[1];
|
package/out/publish.js
CHANGED
|
@@ -118,13 +118,14 @@ async function _publish(packagePath, manifest, options) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
if (extension && extension.versions) {
|
|
121
|
-
const
|
|
122
|
-
|
|
121
|
+
const versionExists = extension.versions.some(v => (v.version === manifest.version) &&
|
|
122
|
+
(v.targetPlatform === options.target));
|
|
123
|
+
if (versionExists) {
|
|
123
124
|
if (options.skipDuplicate) {
|
|
124
125
|
util_2.log.done(`Version ${manifest.version} is already published. Skipping publish.`);
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
+
else {
|
|
128
129
|
throw new Error(`${description} already exists.`);
|
|
129
130
|
}
|
|
130
131
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/vsce",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.1",
|
|
4
4
|
"description": "VSCode Extension Manager",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"minimatch": "^3.0.3",
|
|
52
52
|
"parse-semver": "^1.1.1",
|
|
53
53
|
"read": "^1.0.7",
|
|
54
|
-
"semver": "^5.
|
|
54
|
+
"semver": "^7.5.2",
|
|
55
55
|
"tmp": "^0.2.1",
|
|
56
56
|
"typed-rest-client": "^1.8.4",
|
|
57
57
|
"url-join": "^4.0.1",
|