Skip to content

Commit

Permalink
fix: change name
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 30, 2022
1 parent d7c83c5 commit e363a60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface Manifest {
enabledApiProposals?: readonly string[];
qna?: 'marketplace' | string | false;
extensionKind?: ExtensionKind | ExtensionKind[];
sponsorLink?: string;
sponsor?: string;

// optional (npm)
author?: string | Person;
Expand Down
4 changes: 2 additions & 2 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export class ManifestProcessor extends BaseProcessor {
.join(',')
: '',
preRelease: !!this.options.preRelease,
sponsorLink: manifest.sponsorLink || '',
sponsorLink: manifest.sponsor || '',
};

if (isGitHub) {
Expand Down Expand Up @@ -605,7 +605,7 @@ export class TagsProcessor extends BaseProcessor {
);

const webExensionTags = isWebKind(this.manifest) ? ['__web_extension'] : [];
const sponsorTags = this.manifest.sponsorLink ? ['__sponsor_extension'] : [];
const sponsorTags = this.manifest.sponsor ? ['__sponsor_extension'] : [];

const tags = new Set([
...keywords,
Expand Down
2 changes: 1 addition & 1 deletion src/test/package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@ describe('toVsixManifest', () => {
});

it('should automatically add sponsor tag for extension with sponsor link', async () => {
const manifest = createManifest({ sponsorLink: 'https://foo.bar' });
const manifest = createManifest({ sponsor: 'https://foo.bar' });
const vsixManifest = await _toVsixManifest(manifest, []);
const result = await parseXmlManifest(vsixManifest);

Expand Down

0 comments on commit e363a60

Please # to comment.