@verdaccio/cli 6.0.0-6-next.25 → 6.0.0-6-next.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/build/commands/FastifyServer.js +7 -15
- package/build/commands/FastifyServer.js.map +1 -1
- package/build/commands/info.js +2 -4
- package/build/commands/info.js.map +1 -1
- package/build/commands/init.js +23 -31
- package/build/commands/init.js.map +1 -1
- package/build/commands/version.js +3 -4
- package/build/commands/version.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @verdaccio/cli
|
|
2
2
|
|
|
3
|
+
## 6.0.0-6-next.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b78f3525]
|
|
8
|
+
- @verdaccio/logger@6.0.0-6-next.10
|
|
9
|
+
- @verdaccio/fastify-migration@6.0.0-6-next.19
|
|
10
|
+
- @verdaccio/node-api@6.0.0-6-next.27
|
|
11
|
+
|
|
12
|
+
## 6.0.0-6-next.27
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [730b5d8c]
|
|
17
|
+
- @verdaccio/logger@6.0.0-6-next.9
|
|
18
|
+
- @verdaccio/node-api@6.0.0-6-next.26
|
|
19
|
+
- @verdaccio/fastify-migration@6.0.0-6-next.18
|
|
20
|
+
|
|
21
|
+
## 6.0.0-6-next.26
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [a828271d]
|
|
26
|
+
- Updated dependencies [24b9be02]
|
|
27
|
+
- Updated dependencies [e75c0a3b]
|
|
28
|
+
- @verdaccio/fastify-migration@6.0.0-6-next.17
|
|
29
|
+
- @verdaccio/core@6.0.0-6-next.4
|
|
30
|
+
- @verdaccio/logger@6.0.0-6-next.8
|
|
31
|
+
- @verdaccio/node-api@6.0.0-6-next.25
|
|
32
|
+
- @verdaccio/config@6.0.0-6-next.12
|
|
33
|
+
|
|
3
34
|
## 6.0.0-6-next.25
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -17,8 +17,6 @@ var _logger = require("@verdaccio/logger");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
|
|
22
20
|
const DEFAULT_PROCESS_NAME = 'verdaccio';
|
|
23
21
|
/**
|
|
24
22
|
* This command is intended to run the server with Fastify
|
|
@@ -31,17 +29,13 @@ const DEFAULT_PROCESS_NAME = 'verdaccio';
|
|
|
31
29
|
exports.DEFAULT_PROCESS_NAME = DEFAULT_PROCESS_NAME;
|
|
32
30
|
|
|
33
31
|
class FastifyServer extends _clipanion.Command {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
_defineProperty(this, "config", _clipanion.Option.String('-c,--config', {
|
|
42
|
-
description: 'use this configuration file (default: ./config.yaml)'
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
32
|
+
static paths = [['fastify-server']];
|
|
33
|
+
port = _clipanion.Option.String('-l,-p,--listen,--port', {
|
|
34
|
+
description: 'host:port number to listen on (default: localhost:4873)'
|
|
35
|
+
});
|
|
36
|
+
config = _clipanion.Option.String('-c,--config', {
|
|
37
|
+
description: 'use this configuration file (default: ./config.yaml)'
|
|
38
|
+
});
|
|
45
39
|
|
|
46
40
|
initLogger(logConfig) {
|
|
47
41
|
try {
|
|
@@ -82,6 +76,4 @@ class FastifyServer extends _clipanion.Command {
|
|
|
82
76
|
}
|
|
83
77
|
|
|
84
78
|
exports.FastifyServer = FastifyServer;
|
|
85
|
-
|
|
86
|
-
_defineProperty(FastifyServer, "paths", [['fastify-server']]);
|
|
87
79
|
//# sourceMappingURL=FastifyServer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/FastifyServer.ts"],"names":["DEFAULT_PROCESS_NAME","FastifyServer","Command","Option","String","description","initLogger","logConfig","logs","warningUtils","emit","Codes","VERDEP001","log","Error","execute","configPathLocation","
|
|
1
|
+
{"version":3,"sources":["../../src/commands/FastifyServer.ts"],"names":["DEFAULT_PROCESS_NAME","FastifyServer","Command","paths","port","Option","String","description","config","initLogger","logConfig","logs","warningUtils","emit","Codes","VERDEP001","log","Error","execute","configPathLocation","configParsed","web","process","title","ser","logger","listen","env","PORT","err","console","error","exit"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;;;AAGO,MAAMA,oBAA4B,GAAG,WAArC;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;;;;AACO,MAAMC,aAAN,SAA4BC,kBAA5B,CAAoC;AACtB,SAALC,KAAK,GAAG,CAAC,CAAC,gBAAD,CAAD,CAAH;AAEXC,EAAAA,IAAI,GAAGC,kBAAOC,MAAP,CAAc,uBAAd,EAAuC;AACpDC,IAAAA,WAAW,EAAE;AADuC,GAAvC,CAAH;AAIJC,EAAAA,MAAM,GAAGH,kBAAOC,MAAP,CAAc,aAAd,EAA6B;AAC5CC,IAAAA,WAAW,EAAE;AAD+B,GAA7B,CAAH;;AAINE,EAAAA,UAAU,CAACC,SAAD,EAA2B;AAC3C,QAAI;AACF,UAAIA,SAAS,CAACC,IAAd,EAAoB;AAClBC,2BAAaC,IAAb,CAAkBD,mBAAaE,KAAb,CAAmBC,SAArC;AACD,OAHC,CAIF;;;AACA,yBAAML,SAAS,CAACM,GAAV,IAAiBN,SAAS,CAACC,IAAjC;AACD,KAND,CAME,MAAM;AACN,YAAM,IAAIM,KAAJ,CAAU,sBAAV,CAAN;AACD;AACF;;AAEmB,QAAPC,OAAO,GAAG;AACrB,QAAI;AACF,YAAMC,kBAAkB,GAAG,4BAAe,KAAKX,MAApB,CAA3B;AACA,YAAMY,YAAY,GAAG,6BAAgBD,kBAAhB,CAArB;AACA,YAAM;AAAEE,QAAAA;AAAF,UAAUD,YAAhB;AACA,WAAKX,UAAL,CAAgBW,YAAhB;AAEAE,MAAAA,OAAO,CAACC,KAAR,GAAgB,CAAAF,GAAG,SAAH,IAAAA,GAAG,WAAH,YAAAA,GAAG,CAAEE,KAAL,KAAcvB,oBAA9B,CANE,CAOF;AACA;;AACA,YAAMwB,GAAG,GAAG,MAAM,+BAAO;AAAEC,QAAAA,MAAM,EAANA,cAAF;AAAUjB,QAAAA,MAAM,EAAEY;AAAlB,OAAP,CAAlB,CATE,CAUF;;AACA,YAAMI,GAAG,CAACE,MAAJ,CAAWJ,OAAO,CAACK,GAAR,CAAYC,IAAZ,IAAoB,IAA/B,CAAN;AACD,KAZD,CAYE,OAAOC,GAAP,EAAiB;AACjBC,MAAAA,OAAO,CAACC,KAAR,CAAcF,GAAd;AACAP,MAAAA,OAAO,CAACU,IAAR,CAAa,CAAb;AACD;AACF;;AAxCwC","sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { warningUtils } from '@verdaccio/core';\nimport server from '@verdaccio/fastify-migration';\nimport { logger, setup } from '@verdaccio/logger';\nimport { ConfigRuntime } from '@verdaccio/types';\n\nexport const DEFAULT_PROCESS_NAME: string = 'verdaccio';\n\n/**\n * This command is intended to run the server with Fastify\n * as a migration step.\n * More info: https://github.com/verdaccio/verdaccio/discussions/2155\n * To try out.\n * pnpm debug:fastify\n */\nexport class FastifyServer extends Command {\n public static paths = [['fastify-server']];\n\n private port = Option.String('-l,-p,--listen,--port', {\n description: 'host:port number to listen on (default: localhost:4873)',\n });\n\n private config = Option.String('-c,--config', {\n description: 'use this configuration file (default: ./config.yaml)',\n });\n\n private initLogger(logConfig: ConfigRuntime) {\n try {\n if (logConfig.logs) {\n warningUtils.emit(warningUtils.Codes.VERDEP001);\n }\n // FUTURE: remove fallback when is ready\n setup(logConfig.log || logConfig.logs);\n } catch {\n throw new Error('error on init logger');\n }\n }\n\n public async execute() {\n try {\n const configPathLocation = findConfigFile(this.config as string);\n const configParsed = parseConfigFile(configPathLocation);\n const { web } = configParsed;\n this.initLogger(configParsed);\n\n process.title = web?.title || DEFAULT_PROCESS_NAME;\n // FIXME: need a way to get version of the package.\n // const { version, name } = require('../../package.json');\n const ser = await server({ logger, config: configParsed });\n // FIXME: harcoded, this would need to come from the configuration and the --listen flag.\n await ser.listen(process.env.PORT || 4873);\n } catch (err: any) {\n console.error(err);\n process.exit(1);\n }\n }\n}\n"],"file":"FastifyServer.js"}
|
package/build/commands/info.js
CHANGED
|
@@ -11,9 +11,9 @@ var _envinfo = _interopRequireDefault(require("envinfo"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
-
|
|
16
14
|
class InfoCommand extends _clipanion.Command {
|
|
15
|
+
static paths = [[`--info`], [`-i`]];
|
|
16
|
+
|
|
17
17
|
async execute() {
|
|
18
18
|
this.context.stdout.write('\nEnvironment Info:');
|
|
19
19
|
const data = await _envinfo.default.run({
|
|
@@ -30,6 +30,4 @@ class InfoCommand extends _clipanion.Command {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
exports.InfoCommand = InfoCommand;
|
|
33
|
-
|
|
34
|
-
_defineProperty(InfoCommand, "paths", [[`--info`], [`-i`]]);
|
|
35
33
|
//# sourceMappingURL=info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/info.ts"],"names":["InfoCommand","Command","execute","context","stdout","write","data","envinfo","run","System","Binaries","Virtualization","Browsers","npmGlobalPackages","process","exit"],"mappings":";;;;;;;AAAA;;AACA
|
|
1
|
+
{"version":3,"sources":["../../src/commands/info.ts"],"names":["InfoCommand","Command","paths","execute","context","stdout","write","data","envinfo","run","System","Binaries","Virtualization","Browsers","npmGlobalPackages","process","exit"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEO,MAAMA,WAAN,SAA0BC,kBAA1B,CAAkC;AACpB,SAALC,KAAK,GAAG,CAAC,CAAE,QAAF,CAAD,EAAa,CAAE,IAAF,CAAb,CAAH;;AAEC,QAAPC,OAAO,GAAkB;AACpC,SAAKC,OAAL,CAAaC,MAAb,CAAoBC,KAApB,CAA0B,qBAA1B;AACA,UAAMC,IAAI,GAAG,MAAMC,iBAAQC,GAAR,CAAY;AAC7BC,MAAAA,MAAM,EAAE,CAAC,IAAD,EAAO,KAAP,CADqB;AAE7BC,MAAAA,QAAQ,EAAE,CAAC,MAAD,EAAS,MAAT,EAAiB,KAAjB,EAAwB,MAAxB,CAFmB;AAG7BC,MAAAA,cAAc,EAAE,CAAC,QAAD,CAHa;AAI7BC,MAAAA,QAAQ,EAAE,CAAC,QAAD,EAAW,MAAX,EAAmB,SAAnB,EAA8B,QAA9B,CAJmB;AAK7BC,MAAAA,iBAAiB,EAAE,CAAC,WAAD;AALU,KAAZ,CAAnB;AAQA,SAAKV,OAAL,CAAaC,MAAb,CAAoBC,KAApB,CAA0BC,IAA1B;AACAQ,IAAAA,OAAO,CAACC,IAAR,CAAa,CAAb;AACD;;AAfsC","sourcesContent":["import { Command } from 'clipanion';\nimport envinfo from 'envinfo';\n\nexport class InfoCommand extends Command {\n public static paths = [[`--info`], [`-i`]];\n\n public async execute(): Promise<void> {\n this.context.stdout.write('\\nEnvironment Info:');\n const data = await envinfo.run({\n System: ['OS', 'CPU'],\n Binaries: ['node', 'yarn', 'npm', 'pnpm'],\n Virtualization: ['Docker'],\n Browsers: ['Chrome', 'Edge', 'Firefox', 'Safari'],\n npmGlobalPackages: ['verdaccio'],\n });\n\n this.context.stdout.write(data);\n process.exit(0);\n }\n}\n"],"file":"info.js"}
|
package/build/commands/init.js
CHANGED
|
@@ -15,23 +15,35 @@ var _logger = require("@verdaccio/logger");
|
|
|
15
15
|
|
|
16
16
|
var _nodeApi = require("@verdaccio/node-api");
|
|
17
17
|
|
|
18
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
|
|
20
18
|
const DEFAULT_PROCESS_NAME = 'verdaccio';
|
|
21
19
|
exports.DEFAULT_PROCESS_NAME = DEFAULT_PROCESS_NAME;
|
|
22
20
|
|
|
23
21
|
class InitCommand extends _clipanion.Command {
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
static paths = [_clipanion.Command.Default];
|
|
23
|
+
port = _clipanion.Option.String('-l,-p,--listen,--port', {
|
|
24
|
+
description: 'host:port number to listen on (default: localhost:4873)'
|
|
25
|
+
}); // eslint-disable-next-line
|
|
26
|
+
|
|
27
|
+
static usage = _clipanion.Command.Usage({
|
|
28
|
+
description: `launch the server`,
|
|
29
|
+
details: `
|
|
30
|
+
This start the registry in the default port.
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
description: 'host:port number to listen on (default: localhost:4873)'
|
|
29
|
-
}));
|
|
32
|
+
When used without arguments, it:
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
- bootstrap the server at the port \`4873\`
|
|
35
|
+
|
|
36
|
+
The optional arguments are:
|
|
37
|
+
|
|
38
|
+
- \`-l | --listen | -p | --port\` to switch the default server port,
|
|
39
|
+
- \`-c | --config\` to define a different configuration path location,
|
|
40
|
+
|
|
41
|
+
`,
|
|
42
|
+
examples: [[`Runs the server with the default configuration`, `verdaccio`], [`Runs the server in the port 5000`, `verdaccio --listen 5000`], [`Runs the server by using a different absolute location of the configuration file`, `verdaccio --config /home/user/verdaccio/config.yaml`]]
|
|
43
|
+
});
|
|
44
|
+
config = _clipanion.Option.String('-c,--config', {
|
|
45
|
+
description: 'use this configuration file (default: ./config.yaml)'
|
|
46
|
+
});
|
|
35
47
|
|
|
36
48
|
initLogger(logConfig) {
|
|
37
49
|
try {
|
|
@@ -73,24 +85,4 @@ class InitCommand extends _clipanion.Command {
|
|
|
73
85
|
}
|
|
74
86
|
|
|
75
87
|
exports.InitCommand = InitCommand;
|
|
76
|
-
|
|
77
|
-
_defineProperty(InitCommand, "paths", [_clipanion.Command.Default]);
|
|
78
|
-
|
|
79
|
-
_defineProperty(InitCommand, "usage", _clipanion.Command.Usage({
|
|
80
|
-
description: `launch the server`,
|
|
81
|
-
details: `
|
|
82
|
-
This start the registry in the default port.
|
|
83
|
-
|
|
84
|
-
When used without arguments, it:
|
|
85
|
-
|
|
86
|
-
- bootstrap the server at the port \`4873\`
|
|
87
|
-
|
|
88
|
-
The optional arguments are:
|
|
89
|
-
|
|
90
|
-
- \`-l | --listen | -p | --port\` to switch the default server port,
|
|
91
|
-
- \`-c | --config\` to define a different configuration path location,
|
|
92
|
-
|
|
93
|
-
`,
|
|
94
|
-
examples: [[`Runs the server with the default configuration`, `verdaccio`], [`Runs the server in the port 5000`, `verdaccio --listen 5000`], [`Runs the server by using a different absolute location of the configuration file`, `verdaccio --config /home/user/verdaccio/config.yaml`]]
|
|
95
|
-
}));
|
|
96
88
|
//# sourceMappingURL=init.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/init.ts"],"names":["DEFAULT_PROCESS_NAME","InitCommand","Command","Option","String","description","initLogger","logConfig","logs","warningUtils","emit","Codes","VERDEP001","log","Error","execute","configPathLocation","
|
|
1
|
+
{"version":3,"sources":["../../src/commands/init.ts"],"names":["DEFAULT_PROCESS_NAME","InitCommand","Command","paths","Default","port","Option","String","description","usage","Usage","details","examples","config","initLogger","logConfig","logs","warningUtils","emit","Codes","VERDEP001","log","Error","execute","configPathLocation","configParsed","web","process","title","version","name","require","logger","info","err","console","error","exit"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;AAGO,MAAMA,oBAA4B,GAAG,WAArC;;;AAEA,MAAMC,WAAN,SAA0BC,kBAA1B,CAAkC;AACpB,SAALC,KAAK,GAAG,CAACD,mBAAQE,OAAT,CAAH;AAEXC,EAAAA,IAAI,GAAGC,kBAAOC,MAAP,CAAc,uBAAd,EAAuC;AACpDC,IAAAA,WAAW,EAAE;AADuC,GAAvC,CAAH,CAH2B,CAOvC;;AACY,SAALC,KAAK,GAAGP,mBAAQQ,KAAR,CAAc;AAC3BF,IAAAA,WAAW,EAAG,mBADa;AAE3BG,IAAAA,OAAO,EAAG;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAd+B;AAe3BC,IAAAA,QAAQ,EAAE,CACR,CAAE,gDAAF,EAAoD,WAApD,CADQ,EAER,CAAE,kCAAF,EAAsC,yBAAtC,CAFQ,EAGR,CACG,kFADH,EAEG,qDAFH,CAHQ;AAfiB,GAAd,CAAH;AAyBJC,EAAAA,MAAM,GAAGP,kBAAOC,MAAP,CAAc,aAAd,EAA6B;AAC5CC,IAAAA,WAAW,EAAE;AAD+B,GAA7B,CAAH;;AAINM,EAAAA,UAAU,CAACC,SAAD,EAA2B;AAC3C,QAAI;AACF,UAAIA,SAAS,CAACC,IAAd,EAAoB;AAClBC,2BAAaC,IAAb,CAAkBD,mBAAaE,KAAb,CAAmBC,SAArC;AACD,OAHC,CAIF;;;AACA,yBAAML,SAAS,CAACM,GAAV,IAAiBN,SAAS,CAACC,IAAjC;AACD,KAND,CAME,MAAM;AACN,YAAM,IAAIM,KAAJ,CAAU,sBAAV,CAAN;AACD;AACF;;AAEmB,QAAPC,OAAO,GAAG;AACrB,QAAI;AACF,YAAMC,kBAAkB,GAAG,4BAAe,KAAKX,MAApB,CAA3B;AACA,YAAMY,YAAY,GAAG,6BAAgBD,kBAAhB,CAArB;AACA,WAAKV,UAAL,CAAgBW,YAAhB;AACA,YAAM;AAAEC,QAAAA;AAAF,UAAUD,YAAhB;AAEAE,MAAAA,OAAO,CAACC,KAAR,GAAgB,CAAAF,GAAG,SAAH,IAAAA,GAAG,WAAH,YAAAA,GAAG,CAAEE,KAAL,KAAc5B,oBAA9B;;AAEA,YAAM;AAAE6B,QAAAA,OAAF;AAAWC,QAAAA;AAAX,UAAoBC,OAAO,CAAC,oBAAD,CAAjC;;AAEA,YAAM,yBAAWN,YAAX,EAAyB,KAAKpB,IAA9B,EAA8CwB,OAA9C,EAAuDC,IAAvD,CAAN;;AACAE,qBAAOC,IAAP,CAAY,gBAAZ;AACD,KAZD,CAYE,OAAOC,GAAP,EAAiB;AACjBC,MAAAA,OAAO,CAACC,KAAR,CAAcF,GAAd;AACAP,MAAAA,OAAO,CAACU,IAAR,CAAa,CAAb;AACD;AACF;;AAlEsC","sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { warningUtils } from '@verdaccio/core';\nimport { logger, setup } from '@verdaccio/logger';\nimport { initServer } from '@verdaccio/node-api';\nimport { ConfigRuntime } from '@verdaccio/types';\n\nexport const DEFAULT_PROCESS_NAME: string = 'verdaccio';\n\nexport class InitCommand extends Command {\n public static paths = [Command.Default];\n\n private port = Option.String('-l,-p,--listen,--port', {\n description: 'host:port number to listen on (default: localhost:4873)',\n });\n\n // eslint-disable-next-line\n static usage = Command.Usage({\n description: `launch the server`,\n details: `\n This start the registry in the default port.\n\n When used without arguments, it:\n\n - bootstrap the server at the port \\`4873\\`\n\n The optional arguments are:\n\n - \\`-l | --listen | -p | --port\\` to switch the default server port,\n - \\`-c | --config\\` to define a different configuration path location,\n\n `,\n examples: [\n [`Runs the server with the default configuration`, `verdaccio`],\n [`Runs the server in the port 5000`, `verdaccio --listen 5000`],\n [\n `Runs the server by using a different absolute location of the configuration file`,\n `verdaccio --config /home/user/verdaccio/config.yaml`,\n ],\n ],\n });\n\n private config = Option.String('-c,--config', {\n description: 'use this configuration file (default: ./config.yaml)',\n });\n\n private initLogger(logConfig: ConfigRuntime) {\n try {\n if (logConfig.logs) {\n warningUtils.emit(warningUtils.Codes.VERDEP001);\n }\n // FUTURE: remove fallback when is ready\n setup(logConfig.log || logConfig.logs);\n } catch {\n throw new Error('error on init logger');\n }\n }\n\n public async execute() {\n try {\n const configPathLocation = findConfigFile(this.config as string);\n const configParsed = parseConfigFile(configPathLocation);\n this.initLogger(configParsed);\n const { web } = configParsed;\n\n process.title = web?.title || DEFAULT_PROCESS_NAME;\n\n const { version, name } = require('../../package.json');\n\n await initServer(configParsed, this.port as string, version, name);\n logger.info('server started');\n } catch (err: any) {\n console.error(err);\n process.exit(1);\n }\n }\n}\n"],"file":"init.js"}
|
|
@@ -7,9 +7,10 @@ exports.VersionCommand = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _clipanion = require("clipanion");
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
|
|
12
11
|
class VersionCommand extends _clipanion.Command {
|
|
12
|
+
static paths = [[`--version`], [`-v`]];
|
|
13
|
+
|
|
13
14
|
async execute() {
|
|
14
15
|
const version = require('../../package.json').version;
|
|
15
16
|
|
|
@@ -20,6 +21,4 @@ class VersionCommand extends _clipanion.Command {
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
exports.VersionCommand = VersionCommand;
|
|
23
|
-
|
|
24
|
-
_defineProperty(VersionCommand, "paths", [[`--version`], [`-v`]]);
|
|
25
24
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/version.ts"],"names":["VersionCommand","Command","execute","version","require","context","stdout","write","process","exit"],"mappings":";;;;;;;AACA
|
|
1
|
+
{"version":3,"sources":["../../src/commands/version.ts"],"names":["VersionCommand","Command","paths","execute","version","require","context","stdout","write","process","exit"],"mappings":";;;;;;;AACA;;AADA;AAGO,MAAMA,cAAN,SAA6BC,kBAA7B,CAAqC;AAC9B,SAALC,KAAK,GAAG,CAAC,CAAE,WAAF,CAAD,EAAgB,CAAE,IAAF,CAAhB,CAAH;;AAEC,QAAPC,OAAO,GAAG;AACd,UAAMC,OAAO,GAAGC,OAAO,CAAC,oBAAD,CAAP,CAA8BD,OAA9C;;AACA,SAAKE,OAAL,CAAaC,MAAb,CAAoBC,KAApB,CAA2B,IAAGJ,OAAQ,EAAtC;AACAK,IAAAA,OAAO,CAACC,IAAR,CAAa,CAAb;AACD;;AAPyC","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-member-accessibility */\nimport { Command } from 'clipanion';\n\nexport class VersionCommand extends Command {\n static paths = [[`--version`], [`-v`]];\n\n async execute() {\n const version = require('../../package.json').version;\n this.context.stdout.write(`v${version}`);\n process.exit(0);\n }\n}\n"],"file":"version.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/cli",
|
|
3
|
-
"version": "6.0.0-6-next.
|
|
3
|
+
"version": "6.0.0-6-next.28",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Juan Picado",
|
|
6
6
|
"email": "juanpicado19@gmail.com"
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"main": "./build/index.js",
|
|
35
35
|
"types": "build/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@verdaccio/core": "6.0.0-6-next.
|
|
38
|
-
"@verdaccio/config": "6.0.0-6-next.
|
|
39
|
-
"@verdaccio/logger": "6.0.0-6-next.
|
|
40
|
-
"@verdaccio/node-api": "6.0.0-6-next.
|
|
41
|
-
"@verdaccio/fastify-migration": "6.0.0-6-next.
|
|
37
|
+
"@verdaccio/core": "6.0.0-6-next.4",
|
|
38
|
+
"@verdaccio/config": "6.0.0-6-next.12",
|
|
39
|
+
"@verdaccio/logger": "6.0.0-6-next.10",
|
|
40
|
+
"@verdaccio/node-api": "6.0.0-6-next.27",
|
|
41
|
+
"@verdaccio/fastify-migration": "6.0.0-6-next.19",
|
|
42
42
|
"clipanion": "3.1.0",
|
|
43
43
|
"envinfo": "7.8.1",
|
|
44
44
|
"kleur": "3.0.3",
|
|
45
45
|
"semver": "7.3.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"ts-node": "10.
|
|
48
|
+
"ts-node": "10.4.0"
|
|
49
49
|
},
|
|
50
50
|
"funding": {
|
|
51
51
|
"type": "opencollective",
|