move console log
This commit is contained in:
parent
41d51820ee
commit
fafd5a7246
2 changed files with 4 additions and 7 deletions
|
@ -29,7 +29,7 @@ function versionCommand(): void {
|
|||
function command(args: minimist.ParsedArgs): boolean {
|
||||
const promise = (() => {
|
||||
switch (args._[0]) {
|
||||
case 'package': return pack(args._[1]);
|
||||
case 'package': return pack(args._[1]).then(({ packagePath }) => console.log(`Package created: ${ packagePath }`));
|
||||
case 'login': return login();
|
||||
case 'logout': return logout();
|
||||
case 'publish': return publish(args._[1]);
|
||||
|
|
|
@ -142,10 +142,7 @@ export function pack(packagePath?: string, cwd = process.cwd()): Promise<IPackag
|
|||
return readManifest(cwd)
|
||||
.then(validateManifest)
|
||||
.then(manifest => prepublish(cwd, manifest))
|
||||
.then(manifest => {
|
||||
return writeVsix(cwd, manifest, packagePath).then(packagePath => {
|
||||
console.log(`Package created: ${ packagePath }`);
|
||||
return { manifest, packagePath };
|
||||
});
|
||||
});
|
||||
.then(manifest => writeVsix(cwd, manifest, packagePath)
|
||||
.then(packagePath => ({ manifest, packagePath }))
|
||||
);
|
||||
}
|
Loading…
Add table
Reference in a new issue