@vscode/vsce 3.1.1 → 3.1.2-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 +11 -0
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -521,6 +521,9 @@ class MarkdownProcessor extends BaseProcessor {
|
|
|
521
521
|
if (!this.regexp.test(filePath)) {
|
|
522
522
|
return Promise.resolve(file);
|
|
523
523
|
}
|
|
524
|
+
return await this.processFile(file, filePath);
|
|
525
|
+
}
|
|
526
|
+
async processFile(file, filePath) {
|
|
524
527
|
this.filesProcessed++;
|
|
525
528
|
this.assets.push({ type: this.assetType, path: filePath });
|
|
526
529
|
let contents = await read(file);
|
|
@@ -668,6 +671,10 @@ class ReadmeProcessor extends MarkdownProcessor {
|
|
|
668
671
|
constructor(manifest, options = {}) {
|
|
669
672
|
super(manifest, 'README.md', options.readmePath ?? 'readme.md', 'Microsoft.VisualStudio.Services.Content.Details', options);
|
|
670
673
|
}
|
|
674
|
+
async processFile(file) {
|
|
675
|
+
file.path = 'extension/readme.md';
|
|
676
|
+
return await super.processFile(file, file.path);
|
|
677
|
+
}
|
|
671
678
|
async onEnd() {
|
|
672
679
|
if (this.options.readmePath && this.filesProcessed === 0) {
|
|
673
680
|
util.log.error(`The provided readme file (${this.options.readmePath}) could not be found.`);
|
|
@@ -680,6 +687,10 @@ class ChangelogProcessor extends MarkdownProcessor {
|
|
|
680
687
|
constructor(manifest, options = {}) {
|
|
681
688
|
super(manifest, 'CHANGELOG.md', options.changelogPath ?? 'changelog.md', 'Microsoft.VisualStudio.Services.Content.Changelog', options);
|
|
682
689
|
}
|
|
690
|
+
async processFile(file) {
|
|
691
|
+
file.path = 'extension/changelog.md';
|
|
692
|
+
return await super.processFile(file, file.path);
|
|
693
|
+
}
|
|
683
694
|
async onEnd() {
|
|
684
695
|
if (this.options.changelogPath && this.filesProcessed === 0) {
|
|
685
696
|
util.log.error(`The provided changelog file (${this.options.changelogPath}) could not be found.`);
|