mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-14 17:43:52 +08:00
ci: packages script should list public packages
Added a --json arg for old output.
This commit is contained in:
parent
d2a29afd48
commit
39dac64386
@ -12,6 +12,10 @@ import { logging } from '@angular-devkit/core';
|
||||
const { packages } = require('../lib/packages');
|
||||
|
||||
|
||||
export default function(_: {}, logger: logging.Logger) {
|
||||
logger.info(JSON.stringify(packages, null, 2));
|
||||
export default function(args: { json: boolean }, logger: logging.Logger) {
|
||||
if (args.json) {
|
||||
logger.info(JSON.stringify(packages, null, 2));
|
||||
} else {
|
||||
logger.info(Object.keys(packages).filter(name => !packages[name].private).join('\n'));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user