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:
parent
612470544c
commit
974cd8c19c
5 changed files with 15 additions and 3 deletions
8
.changeset/blue-cobras-study.md
Normal file
8
.changeset/blue-cobras-study.md
Normal 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
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
|
|
4
packages/ui-components/.npmignore
Normal file
4
packages/ui-components/.npmignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
.storybook
|
||||
public/
|
||||
msw
|
||||
jest
|
Loading…
Reference in a new issue