rman 0.10.0 → 0.12.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/bin/rman.js CHANGED
@@ -2,4 +2,4 @@
2
2
  import {runCli} from '../esm/cli.mjs';
3
3
 
4
4
  // eslint-disable-next-line
5
- runCli().catch();
5
+ runCli().catch(() => 0);
@@ -20,12 +20,22 @@ class PublishCommand extends run_command_1.RunCommand {
20
20
  const selectedPackages = [];
21
21
  for (const p of packages) {
22
22
  const logPkgName = chalk_1.default.yellow(p.name);
23
- npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Fetching package information from repository`);
24
- const r = await (0, package_json_1.default)(p.json.name);
25
- if (r.version === p.version) {
26
- npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Ignored. Same version (${p.version}) in repository`);
23
+ if (p.json.private) {
24
+ npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Ignored. Package is set to "private"`);
27
25
  continue;
28
26
  }
27
+ npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Fetching package information from repository`);
28
+ try {
29
+ const r = await (0, package_json_1.default)(p.json.name);
30
+ if (r.version === p.version) {
31
+ npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Ignored. Same version (${p.version}) in repository`);
32
+ continue;
33
+ }
34
+ }
35
+ catch (e) {
36
+ if (e.name !== 'PackageNotFoundError')
37
+ throw e;
38
+ }
29
39
  selectedPackages.push(p);
30
40
  }
31
41
  return super._prepareTasks(selectedPackages, { newVersions });
@@ -129,9 +129,7 @@ RunCommand.commandName = 'run';
129
129
  if (args.script && runCfg && typeof runCfg === 'object') {
130
130
  ['parallel', 'bail', 'progress'].forEach(n => {
131
131
  if (typeof runCfg[n] === 'string') {
132
- if (runCfg[n].split(/\s*,\s*/).includes(args.script)) {
133
- args[n] = true;
134
- }
132
+ runCfg[n] = runCfg[n].split(/\s*,\s*/).includes(args.script);
135
133
  }
136
134
  });
137
135
  }
package/cjs/debug.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const cli_1 = require("./cli");
4
- (0, cli_1.runCli)({ cwd: '/Users/ehanoglu/Yazilim/js/emr' })
4
+ (0, cli_1.runCli)({ cwd: '/Users/ehanoglu/Yazilim/js/nestx' })
5
5
  .catch(() => 0);
@@ -14,12 +14,22 @@ export class PublishCommand extends RunCommand {
14
14
  const selectedPackages = [];
15
15
  for (const p of packages) {
16
16
  const logPkgName = chalk.yellow(p.name);
17
- logger.info(this.commandName, logPkgName, logger.separator, `Fetching package information from repository`);
18
- const r = await fetchPackageInfo(p.json.name);
19
- if (r.version === p.version) {
20
- logger.info(this.commandName, logPkgName, logger.separator, `Ignored. Same version (${p.version}) in repository`);
17
+ if (p.json.private) {
18
+ logger.info(this.commandName, logPkgName, logger.separator, `Ignored. Package is set to "private"`);
21
19
  continue;
22
20
  }
21
+ logger.info(this.commandName, logPkgName, logger.separator, `Fetching package information from repository`);
22
+ try {
23
+ const r = await fetchPackageInfo(p.json.name);
24
+ if (r.version === p.version) {
25
+ logger.info(this.commandName, logPkgName, logger.separator, `Ignored. Same version (${p.version}) in repository`);
26
+ continue;
27
+ }
28
+ }
29
+ catch (e) {
30
+ if (e.name !== 'PackageNotFoundError')
31
+ throw e;
32
+ }
23
33
  selectedPackages.push(p);
24
34
  }
25
35
  return super._prepareTasks(selectedPackages, { newVersions });
@@ -122,9 +122,7 @@ RunCommand.commandName = 'run';
122
122
  if (args.script && runCfg && typeof runCfg === 'object') {
123
123
  ['parallel', 'bail', 'progress'].forEach(n => {
124
124
  if (typeof runCfg[n] === 'string') {
125
- if (runCfg[n].split(/\s*,\s*/).includes(args.script)) {
126
- args[n] = true;
127
- }
125
+ runCfg[n] = runCfg[n].split(/\s*,\s*/).includes(args.script);
128
126
  }
129
127
  });
130
128
  }
package/esm/debug.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { runCli } from './cli.mjs';
2
- runCli({ cwd: '/Users/ehanoglu/Yazilim/js/emr' })
2
+ runCli({ cwd: '/Users/ehanoglu/Yazilim/js/nestx' })
3
3
  .catch(() => 0);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rman",
3
3
  "description": "Monorepo repository manager",
4
- "version": "0.10.0",
4
+ "version": "0.12.1",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "contributors": [