Skip to content

Commit 51b190d

Browse files
authored
Merge pull request #133 from microservices-suite/repo-engineering/universal-cli
Repo engineering/universal cli
2 parents 707d89b + f3452e3 commit 51b190d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.suite-cli/cli/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ program
4040
.command('install')
4141
.description('Installs dependencies at given workspace. If not specified workspace defaults to "microservices"')
4242
.requiredOption('-n, --workspace-name <name>', 'Name of the workspace where to install dependencies')
43-
.option('-d, --workspace-directory <directory>', 'Name of the workspace where to install dependencies', 'microservices')
43+
.option('-d, --workspace-directory <directory>', 'Name of the directory where to install dependencies', 'microservices')
4444
.argument('<packages...>', 'Space-separated list of packages to install')
4545
.action(async (packages, options) => await actionHandlers.installDepsAtWorkspace({ packages, options }));
4646
program

.suite-cli/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microservices-suite/cli",
3-
"version": "2.0.10",
3+
"version": "2.0.11-0",
44
"description": "This is the CLI tool for running the microservices-suite monorepo. It contains functionalities and tools required for automation and managing the repo across supported platforms. Works on Windows,MacOS and Linux as well as support to some extend other variants like SunOS, IBM AIX, FreeBSD, OpenBSD and more",
55
"main": "cli.js",
66
"repository": "https://github.com/microservices-suite/node-microservices-suite.git",

.suite-cli/cli/scripts/assets/genericPackageJsonContent.asset.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ module.exports = ({ answers, suffix, isMicroservice, description, os, addDeps })
3434
]
3535
},
3636
}),
37-
publishConfig: {
38-
access: "public",
39-
registry: "http://registry.npmjs.org"
40-
},
37+
// add publishConfig if is library
38+
...(!(isMicroservice || addDeps) ? {
39+
publishConfig: {
40+
access: "public",
41+
registry: "https://registry.npmjs.org"
42+
},
43+
} : {}),
4144
scripts: {
4245
release: "npx bumpp-version@latest && npm publish",
4346
...(isMicroservice && {

0 commit comments

Comments
 (0)