0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

fix: startup messages improved and logs support on types (#3667)

* fix: startup messages improved and logs support on types

* Create blue-cobras-study.md

* add npmignore
This commit is contained in:
Juan Picado 2023-03-07 21:49:56 +01:00 committed by GitHub
parent 612470544c
commit 974cd8c19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1,8 @@
---
'@verdaccio/cli': minor
'@verdaccio/ui-components': minor
'@verdaccio/core': minor
'@verdaccio/types': minor
---
fix: startup messages improved and logs support on types

View file

@ -46,9 +46,7 @@ export class InitCommand extends Command {
});
private initLogger(logConfig: ConfigYaml) {
// @ts-expect-error
if (logConfig.logs) {
// @ts-expect-error
logConfig.log = logConfig.logs;
warningUtils.emit(warningUtils.Codes.VERWAR002);
}

View file

@ -17,7 +17,7 @@ export enum Codes {
warningInstance.create(
verdaccioWarning,
Codes.VERWAR002,
`The property config "logs" property is longer supported, rename to "log" and use object instead`
`The configuration file property "logs" property is deprecated, rename to "log" for future compatibility`
);
warningInstance.create(

View file

@ -245,6 +245,8 @@ export interface ConfigYaml {
packages: PackageList;
uplinks: UpLinksConfList;
log?: LoggerConfItem;
// @deprecated deprecation path from 5.x
logs?: LoggerConfItem;
web?: WebConf;
auth?: AuthConf;
security: Security;

View file

@ -0,0 +1,4 @@
.storybook
public/
msw
jest