@vscode/vsce 2.18.0 → 2.20.0
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 +3 -3
- package/out/publish.js +4 -3
- package/package.json +3 -3
package/out/package.js
CHANGED
|
@@ -497,7 +497,7 @@ class MarkdownProcessor extends BaseProcessor {
|
|
|
497
497
|
this.assets.push({ type: this.assetType, path: filePath });
|
|
498
498
|
let contents = await read(file);
|
|
499
499
|
if (/This is the README for your extension /.test(contents)) {
|
|
500
|
-
throw new Error(`Make sure to edit the README.md file before you package or publish your extension.`);
|
|
500
|
+
throw new Error(`It seems the README.md still contains template text. Make sure to edit the README.md file before you package or publish your extension.`);
|
|
501
501
|
}
|
|
502
502
|
if (this.rewriteRelativeLinks) {
|
|
503
503
|
const markdownPathRegex = /(!?)\[([^\]\[]*|!\[[^\]\[]*]\([^\)]+\))\]\(([^\)]+)\)/g;
|
|
@@ -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
|
+
(options.target ? v.targetPlatform === options.target : true));
|
|
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.0",
|
|
4
4
|
"description": "VSCode Extension Manager",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,11 +51,11 @@
|
|
|
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",
|
|
58
|
-
"xml2js": "^0.
|
|
58
|
+
"xml2js": "^0.5.0",
|
|
59
59
|
"yauzl": "^2.3.1",
|
|
60
60
|
"yazl": "^2.2.2"
|
|
61
61
|
},
|