@mirta/cli 0.3.0 → 0.3.1

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/README.md CHANGED
@@ -32,7 +32,6 @@ You can configure additional parameters by adding a configuration file named `mi
32
32
  ### Main Configuration Options
33
33
 
34
34
  - `scope` sets the correspondence to an account or organization name in the NPM registry.
35
- ```
36
35
  - `scopeAsPackagePrefix` enables transformation of module paths by prefixing the specified `scope` before the package name. Default is `false`.
37
36
 
38
37
  Example of `scopeAsPackagePrefix` for the package `@myscope/globals`:
package/dist/package.mjs CHANGED
@@ -110,12 +110,14 @@ function hasScript(name) {
110
110
  }
111
111
  if (existsSync(mirtaConfigFilePath)) {
112
112
  const config = JSON.parse(readFileSync(mirtaConfigFilePath, 'utf-8'));
113
- scope = config.scope;
114
- scopeAsPackagePrefix = config.scopedPackagePrefix === true;
115
- if (scope?.startsWith('@'))
116
- scope = scope.slice(1);
117
- if (scope)
118
- scoped = `@${scope}/`;
113
+ if (config.scope) {
114
+ scope = config.scope;
115
+ if (scope.startsWith('@'))
116
+ scope = scope.slice(1);
117
+ if (scope)
118
+ scoped = `@${scope}/`;
119
+ }
120
+ scopeAsPackagePrefix = config.scopeAsPackagePrefix === true;
119
121
  if (config.templates && Array.isArray(config.templates)) {
120
122
  config.templates.forEach((template) => {
121
123
  const templatesDir = nodePath.resolve(rootDir, template);
@@ -158,6 +160,7 @@ function updateDependencies(pkg, depType, version) {
158
160
  if (!isWorkspacePackage(dep))
159
161
  return;
160
162
  deps[dep] = version;
163
+ logger.step(`- ${dep}`);
161
164
  });
162
165
  }
163
166
  function updateTemplateDependencies(templateRoot, version) {
package/dist/shell.mjs CHANGED
@@ -70,7 +70,6 @@ const redBanner = red(banner);
70
70
  const cyanBanner = cyan(banner);
71
71
  const greenBanner = green(banner);
72
72
  const yellowBanner = yellow(banner);
73
- const dimmedBanner = dim(banner);
74
73
  const infoPill = (message) => message ? bgCyan.black(` ${message} `) + (` ${cyan(dot)} `) : '';
75
74
  const successPill = (message) => message
76
75
  ? bgGreen.black(` ${message} `) + ' '
@@ -88,7 +87,7 @@ function useLogger(localized) {
88
87
  }
89
88
  function step(message) {
90
89
  if (message)
91
- console.log(`${dimmedBanner} ${dim(message)}`);
90
+ console.log(dim(message));
92
91
  }
93
92
  function info(message, title = localized.status.info) {
94
93
  if (message)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirta/cli",
3
3
  "description": "🛠️ Mirta Framework - the CLI",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "license": "Unlicense",
6
6
  "keywords": [
7
7
  "cli",