mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5033] Improve publish script (#5297)
* check if npm package is already present before to publish * fix lint and remove duplicate password * fix script
This commit is contained in:
@@ -29,7 +29,13 @@ export function exec(command: string, args?: string[], opts?: { cwd?: string })
|
||||
const { status, error, stderr, stdout } = spawnSync(command, args, { ...opts });
|
||||
|
||||
if (status !== 0) {
|
||||
logger.error(`Command failed: ${command} ${args.map((x) => JSON.stringify(x)).join(', ')}`);
|
||||
|
||||
if (args) {
|
||||
logger.error(`Command failed: ${command} ${args.map((x) => JSON.stringify(x)).join(', ')}`);
|
||||
} else {
|
||||
logger.error(`Command failed ${command}`);
|
||||
}
|
||||
|
||||
if (error) {
|
||||
logger.error('Error: ' + (error ? error.message : 'undefined'));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user