@verdaccio/cli 6.0.0-6-next.31 → 6.0.0-6-next.34
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 +24 -0
- package/build/commands/init.js +1 -1
- package/build/commands/init.js.map +1 -1
- package/package.json +64 -63
- package/src/commands/init.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @verdaccio/cli
|
|
2
2
|
|
|
3
|
+
## 6.0.0-6-next.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @verdaccio/node-api@6.0.0-6-next.32
|
|
8
|
+
|
|
9
|
+
## 6.0.0-6-next.33
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [d43894e8]
|
|
14
|
+
- Updated dependencies [d08fe29d]
|
|
15
|
+
- @verdaccio/config@6.0.0-6-next.14
|
|
16
|
+
- @verdaccio/fastify-migration@6.0.0-6-next.23
|
|
17
|
+
- @verdaccio/node-api@6.0.0-6-next.31
|
|
18
|
+
- @verdaccio/core@6.0.0-6-next.5
|
|
19
|
+
- @verdaccio/logger@6.0.0-6-next.11
|
|
20
|
+
|
|
21
|
+
## 6.0.0-6-next.32
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- d78c8b51: chore: improve error logger message
|
|
26
|
+
|
|
3
27
|
## 6.0.0-6-next.31
|
|
4
28
|
|
|
5
29
|
### Major Changes
|
package/build/commands/init.js
CHANGED
|
@@ -47,7 +47,7 @@ class InitCommand extends _clipanion.Command {
|
|
|
47
47
|
try {
|
|
48
48
|
// @ts-expect-error
|
|
49
49
|
if (logConfig.logs) {
|
|
50
|
-
throw Error('
|
|
50
|
+
throw Error('the property config "logs" property is longer supported, rename to "log" and use object instead');
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
(0, _logger.setup)(logConfig.log);
|
|
@@ -1 +1 @@
|
|
|
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","Error","log","err","execute","configPathLocation","configParsed","web","process","title","version","name","require","logger","info","console","error","exit"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;;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;AACA,UAAIA,SAAS,CAACC,IAAd,EAAoB;AAClB,cAAMC,KAAK,
|
|
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","Error","log","err","execute","configPathLocation","configParsed","web","process","title","version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F,UAAUD,YAAhB;AAEAE,MAAAA,OAAO,CAACC,KAAR,GAAgB,CAAAF,GAAG,SAAH,IAAAA,GAAG,WAAH,YAAAA,GAAG,CAAEE,KAAL,KAAczB,oBAA9B;;AAEA,YAAM;AAAE0B,QAAAA,OAAF;AAAWC,QAAAA;AAAX,UAAoBC,OAAO,CAAC,oBAAD,CAAjC;;AAEA,YAAM,yBAAWN,YAAX,EAAyB,KAAKjB,IAA9B,EAA8CqB,OAA9C,EAAuDC,IAAvD,CAAN;;AACAE,qBAAOC,IAAP,CAAY,gBAAZ;AACD,KAZD,CAYE,OAAOX,GAAP,EAAiB;AACjBY,MAAAA,OAAO,CAACC,KAAR,CAAcb,GAAd;AACAK,MAAAA,OAAO,CAACS,IAAR,CAAa,CAAb;AACD;AACF;;AApEsC","sourcesContent":["import { Command, Option } from 'clipanion';\n\nimport { findConfigFile, parseConfigFile } from '@verdaccio/config';\nimport { logger, setup } from '@verdaccio/logger';\nimport { LoggerConfigItem } from '@verdaccio/logger/src/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 // @ts-expect-error\n if (logConfig.logs) {\n throw Error(\n 'the property config \"logs\" property is longer supported, rename to \"log\" and use object instead'\n );\n }\n setup(logConfig.log as LoggerConfigItem);\n } catch (err: any) {\n throw new Error(err);\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"}
|
package/package.json
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"name": "@verdaccio/cli",
|
|
3
|
+
"version": "6.0.0-6-next.34",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Juan Picado",
|
|
6
|
+
"email": "juanpicado19@gmail.com"
|
|
7
|
+
},
|
|
8
|
+
"bin": {
|
|
9
|
+
"verdaccio": "./bin/verdaccio",
|
|
10
|
+
"verdaccio-cli": "./bin/verdaccio"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "https",
|
|
14
|
+
"url": "https://github.com/verdaccio/verdaccio"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://verdaccio.org",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"private",
|
|
19
|
+
"package",
|
|
20
|
+
"repository",
|
|
21
|
+
"registry",
|
|
22
|
+
"enterprise",
|
|
23
|
+
"modules",
|
|
24
|
+
"proxy",
|
|
25
|
+
"server",
|
|
26
|
+
"verdaccio"
|
|
27
|
+
],
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=14",
|
|
30
|
+
"npm": ">=6"
|
|
31
|
+
},
|
|
32
|
+
"description": "verdaccio CLI",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"main": "./build/index.js",
|
|
35
|
+
"types": "build/index.d.ts",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@verdaccio/core": "6.0.0-6-next.5",
|
|
38
|
+
"@verdaccio/config": "6.0.0-6-next.14",
|
|
39
|
+
"@verdaccio/logger": "6.0.0-6-next.11",
|
|
40
|
+
"@verdaccio/node-api": "6.0.0-6-next.32",
|
|
41
|
+
"@verdaccio/fastify-migration": "6.0.0-6-next.23",
|
|
42
|
+
"clipanion": "3.1.0",
|
|
43
|
+
"envinfo": "7.8.1",
|
|
44
|
+
"kleur": "3.0.3",
|
|
45
|
+
"semver": "7.3.5"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"ts-node": "10.4.0"
|
|
49
|
+
},
|
|
50
|
+
"funding": {
|
|
51
|
+
"type": "opencollective",
|
|
52
|
+
"url": "https://opencollective.com/verdaccio"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"clean": "rimraf ./build",
|
|
56
|
+
"test": "cross-env NODE_ENV=test BABEL_ENV=test jest",
|
|
57
|
+
"type-check": "tsc --noEmit -p tsconfig.build.json",
|
|
58
|
+
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
|
|
59
|
+
"build:js": "babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps",
|
|
60
|
+
"watch": "pnpm build:js --F --watch",
|
|
61
|
+
"build": "pnpm run build:js && pnpm run build:types",
|
|
62
|
+
"start": "ts-node src/index.ts"
|
|
63
|
+
},
|
|
64
|
+
"readme": "# @verdaccio/cli\n\n[](https://opencollective.com/verdaccio)\n[](https://stackshare.io/verdaccio)\n[](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)\n[](https://crowdin.com/project/verdaccio)\n[](https://www.tickgit.com/browse?repo=github.com/verdaccio/verdaccio)\n\n[](https://twitter.com/verdaccio_npm)\n[](https://github.com/verdaccio/verdaccio/stargazers)\n\n## Donations\n\nVerdaccio is run by **volunteers**; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - **your logo might end up in this readme.** 😉\n\n**[Donate](https://opencollective.com/verdaccio)** 💵👍🏻 starting from _\\$1/month_ or just one single contribution.\n\n## Report a vulnerability\n\nIf you want to report a security vulnerability, please follow the steps which we have defined for you in our [security policy](https://github.com/verdaccio/verdaccio/security/policy).\n\n## Open Collective Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/verdaccio#sponsor)]\n\n[](https://opencollective.com/verdaccio/sponsor/0/website)\n[](https://opencollective.com/verdaccio/sponsor/1/website)\n[](https://opencollective.com/verdaccio/sponsor/2/website)\n[](https://opencollective.com/verdaccio/sponsor/3/website)\n[](https://opencollective.com/verdaccio/sponsor/4/website)\n[](https://opencollective.com/verdaccio/sponsor/5/website)\n[](https://opencollective.com/verdaccio/sponsor/6/website)\n[](https://opencollective.com/verdaccio/sponsor/7/website)\n[](https://opencollective.com/verdaccio/sponsor/8/website)\n[](https://opencollective.com/verdaccio/sponsor/9/website)\n\n## Open Collective Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/verdaccio#backer)]\n\n[](https://opencollective.com/verdaccio#backers)\n\n## Special Thanks\n\nThanks to the following companies to help us to achieve our goals providing free open source licenses.\n\n[](https://www.jetbrains.com/)\n[](https://crowdin.com/)\n[](https://balsamiq.com/)\n\n## Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\n[](../../graphs/contributors)\n\n### FAQ / Contact / Troubleshoot\n\nIf you have any issue you can try the following options, do no desist to ask or check our issues database, perhaps someone has asked already what you are looking for.\n\n- [Blog](https://verdaccio.org/blog/)\n- [Donations](https://opencollective.com/verdaccio)\n- [Reporting an issue](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md#reporting-a-bug)\n- [Running discussions](https://github.com/verdaccio/verdaccio/issues?q=is%3Aissue+is%3Aopen+label%3Adiscuss)\n- [Chat](http://chat.verdaccio.org/)\n- [Logos](https://verdaccio.org/docs/en/logo)\n- [Docker Examples](https://github.com/verdaccio/docker-examples)\n- [FAQ](https://github.com/verdaccio/verdaccio/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3Aquestion%20)\n\n### License\n\nVerdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)\n\nThe Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch) files within the /assets folder) is\n[Creative Commons licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE-docs).\n"
|
|
65
|
+
}
|
package/src/commands/init.ts
CHANGED
|
@@ -49,7 +49,9 @@ export class InitCommand extends Command {
|
|
|
49
49
|
try {
|
|
50
50
|
// @ts-expect-error
|
|
51
51
|
if (logConfig.logs) {
|
|
52
|
-
throw Error(
|
|
52
|
+
throw Error(
|
|
53
|
+
'the property config "logs" property is longer supported, rename to "log" and use object instead'
|
|
54
|
+
);
|
|
53
55
|
}
|
|
54
56
|
setup(logConfig.log as LoggerConfigItem);
|
|
55
57
|
} catch (err: any) {
|