add noVerify
This commit is contained in:
parent
0c517649be
commit
34381ffd37
2 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,8 @@ module.exports = function (argv: string[]): void {
|
|||
.option('--baseContentUrl [url]', 'Prepend all relative links in README.md with this url.')
|
||||
.option('--baseImagesUrl [url]', 'Prepend all relative image links in README.md with this url.')
|
||||
.option('--yarn', 'Use yarn instead of npm while packing extension files')
|
||||
.action((version, { pat, packagePath, baseContentUrl, baseImagesUrl, yarn }) => main(publish({ pat, version, packagePath, baseContentUrl, baseImagesUrl, useYarn: yarn })));
|
||||
.option('--noVerify')
|
||||
.action((version, { pat, packagePath, baseContentUrl, baseImagesUrl, yarn, noVerify }) => main(publish({ pat, version, packagePath, baseContentUrl, baseImagesUrl, useYarn: yarn, noVerify })));
|
||||
|
||||
program
|
||||
.command('unpublish [<extensionid>]')
|
||||
|
|
|
@ -95,6 +95,7 @@ export interface IPublishOptions {
|
|||
baseContentUrl?: string;
|
||||
baseImagesUrl?: string;
|
||||
useYarn?: boolean;
|
||||
noVerify?: boolean;
|
||||
}
|
||||
|
||||
function versionBump(cwd: string = process.cwd(), version?: string): Promise<void> {
|
||||
|
@ -151,7 +152,7 @@ export function publish(options: IPublishOptions = {}): Promise<any> {
|
|||
}
|
||||
|
||||
return promise.then(({ manifest, packagePath }) => {
|
||||
if (manifest.enableProposedApi) {
|
||||
if (!options.noVerify && manifest.enableProposedApi) {
|
||||
throw new Error('Extensions using proposed API (enableProposedApi: true) can\'t be published to the Marketplace');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue