do not allow web publishing when package path is provided
This commit is contained in:
parent
d15456e941
commit
d3c2ffc5f4
1 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,9 @@ export function publish(options: IPublishOptions = {}): Promise<any> {
|
|||
if (options.version) {
|
||||
return Promise.reject(`Not supported: packagePath and version.`);
|
||||
}
|
||||
if (options.web) {
|
||||
return Promise.reject(`Not supported: packagePath and web.`);
|
||||
}
|
||||
|
||||
promise = readManifestFromPackage(options.packagePath)
|
||||
.then(manifest => ({ manifest, packagePath: options.packagePath }));
|
||||
|
|
Loading…
Add table
Reference in a new issue