Skip to content

Commit 34381ff

Browse files
committed
add noVerify
1 parent 0c51764 commit 34381ff

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ module.exports = function (argv: string[]): void {
7979
.option('--baseContentUrl [url]', 'Prepend all relative links in README.md with this url.')
8080
.option('--baseImagesUrl [url]', 'Prepend all relative image links in README.md with this url.')
8181
.option('--yarn', 'Use yarn instead of npm while packing extension files')
82-
.action((version, { pat, packagePath, baseContentUrl, baseImagesUrl, yarn }) => main(publish({ pat, version, packagePath, baseContentUrl, baseImagesUrl, useYarn: yarn })));
82+
.option('--noVerify')
83+
.action((version, { pat, packagePath, baseContentUrl, baseImagesUrl, yarn, noVerify }) => main(publish({ pat, version, packagePath, baseContentUrl, baseImagesUrl, useYarn: yarn, noVerify })));
8384

8485
program
8586
.command('unpublish [<extensionid>]')

src/publish.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export interface IPublishOptions {
9595
baseContentUrl?: string;
9696
baseImagesUrl?: string;
9797
useYarn?: boolean;
98+
noVerify?: boolean;
9899
}
99100

100101
function versionBump(cwd: string = process.cwd(), version?: string): Promise<void> {
@@ -151,7 +152,7 @@ export function publish(options: IPublishOptions = {}): Promise<any> {
151152
}
152153

153154
return promise.then(({ manifest, packagePath }) => {
154-
if (manifest.enableProposedApi) {
155+
if (!options.noVerify && manifest.enableProposedApi) {
155156
throw new Error('Extensions using proposed API (enableProposedApi: true) can\'t be published to the Marketplace');
156157
}
157158

0 commit comments

Comments
 (0)