rman 0.27.4 → 0.28.0

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.
@@ -9,8 +9,8 @@ class BuildCommand extends run_command_js_1.RunCommand {
9
9
  this.repository = repository;
10
10
  }
11
11
  }
12
- exports.BuildCommand = BuildCommand;
13
12
  BuildCommand.commandName = 'build';
13
+ exports.BuildCommand = BuildCommand;
14
14
  (function (BuildCommand) {
15
15
  function initCli(repository, program) {
16
16
  program.command({
@@ -30,3 +30,4 @@ BuildCommand.commandName = 'build';
30
30
  }
31
31
  BuildCommand.initCli = initCli;
32
32
  })(BuildCommand = exports.BuildCommand || (exports.BuildCommand = {}));
33
+ exports.BuildCommand = BuildCommand;
@@ -14,8 +14,8 @@ class ChangedCommand extends list_command_js_1.ListCommand {
14
14
  return !!(inf.isDirty || inf.isCommitted);
15
15
  }
16
16
  }
17
- exports.ChangedCommand = ChangedCommand;
18
17
  ChangedCommand.commandName = 'changed';
18
+ exports.ChangedCommand = ChangedCommand;
19
19
  (function (ChangedCommand) {
20
20
  function initCli(repository, program) {
21
21
  program.command({
@@ -36,3 +36,4 @@ ChangedCommand.commandName = 'changed';
36
36
  }
37
37
  ChangedCommand.initCli = initCli;
38
38
  })(ChangedCommand = exports.ChangedCommand || (exports.ChangedCommand = {}));
39
+ exports.ChangedCommand = ChangedCommand;
@@ -53,8 +53,8 @@ class CleanInstallCommand extends run_command_js_1.RunCommand {
53
53
  }
54
54
  }
55
55
  }
56
- exports.CleanInstallCommand = CleanInstallCommand;
57
56
  CleanInstallCommand.commandName = 'ci';
57
+ exports.CleanInstallCommand = CleanInstallCommand;
58
58
  (function (CleanInstallCommand) {
59
59
  CleanInstallCommand.cliCommandOptions = {
60
60
  ...run_command_js_1.RunCommand.cliCommandOptions
@@ -76,3 +76,4 @@ CleanInstallCommand.commandName = 'ci';
76
76
  }
77
77
  CleanInstallCommand.initCli = initCli;
78
78
  })(CleanInstallCommand = exports.CleanInstallCommand || (exports.CleanInstallCommand = {}));
79
+ exports.CleanInstallCommand = CleanInstallCommand;
@@ -40,8 +40,8 @@ class ExecuteCommand extends multi_task_command_js_1.MultiTaskCommand {
40
40
  return tasks;
41
41
  }
42
42
  }
43
- exports.ExecuteCommand = ExecuteCommand;
44
43
  ExecuteCommand.commandName = 'exec';
44
+ exports.ExecuteCommand = ExecuteCommand;
45
45
  (function (ExecuteCommand) {
46
46
  ExecuteCommand.cliCommandOptions = {
47
47
  ...multi_task_command_js_1.MultiTaskCommand.cliCommandOptions
@@ -76,3 +76,4 @@ ExecuteCommand.commandName = 'exec';
76
76
  }
77
77
  ExecuteCommand.initCli = initCli;
78
78
  })(ExecuteCommand = exports.ExecuteCommand || (exports.ExecuteCommand = {}));
79
+ exports.ExecuteCommand = ExecuteCommand;
@@ -43,8 +43,8 @@ class InfoCommand extends command_js_1.Command {
43
43
  }
44
44
  }
45
45
  }
46
- exports.InfoCommand = InfoCommand;
47
46
  InfoCommand.commandName = 'info';
47
+ exports.InfoCommand = InfoCommand;
48
48
  (function (InfoCommand) {
49
49
  function initCli(repository, program) {
50
50
  program.command({
@@ -64,3 +64,4 @@ InfoCommand.commandName = 'info';
64
64
  }
65
65
  InfoCommand.initCli = initCli;
66
66
  })(InfoCommand = exports.InfoCommand || (exports.InfoCommand = {}));
67
+ exports.InfoCommand = InfoCommand;
@@ -97,8 +97,8 @@ class ListCommand extends command_js_1.Command {
97
97
  return arr;
98
98
  }
99
99
  }
100
- exports.ListCommand = ListCommand;
101
100
  ListCommand.commandName = 'list';
101
+ exports.ListCommand = ListCommand;
102
102
  (function (ListCommand) {
103
103
  ListCommand.cliCommandOptions = {
104
104
  'short': {
@@ -140,3 +140,4 @@ ListCommand.commandName = 'list';
140
140
  }
141
141
  ListCommand.initCli = initCli;
142
142
  })(ListCommand = exports.ListCommand || (exports.ListCommand = {}));
143
+ exports.ListCommand = ListCommand;
@@ -75,8 +75,8 @@ class PublishCommand extends run_command_js_1.RunCommand {
75
75
  return super._exec(pkg, command, args, options);
76
76
  }
77
77
  }
78
- exports.PublishCommand = PublishCommand;
79
78
  PublishCommand.commandName = 'publish';
79
+ exports.PublishCommand = PublishCommand;
80
80
  (function (PublishCommand) {
81
81
  PublishCommand.cliCommandOptions = {
82
82
  ...run_command_js_1.RunCommand.cliCommandOptions,
@@ -114,3 +114,4 @@ PublishCommand.commandName = 'publish';
114
114
  }
115
115
  PublishCommand.initCli = initCli;
116
116
  })(PublishCommand = exports.PublishCommand || (exports.PublishCommand = {}));
117
+ exports.PublishCommand = PublishCommand;
@@ -91,8 +91,8 @@ class RunCommand extends multi_task_command_js_1.MultiTaskCommand {
91
91
  return r;
92
92
  }
93
93
  }
94
- exports.RunCommand = RunCommand;
95
94
  RunCommand.commandName = 'run';
95
+ exports.RunCommand = RunCommand;
96
96
  (function (RunCommand) {
97
97
  RunCommand.cliCommandOptions = {
98
98
  ...multi_task_command_js_1.MultiTaskCommand.cliCommandOptions
@@ -127,3 +127,4 @@ RunCommand.commandName = 'run';
127
127
  }
128
128
  RunCommand.initCli = initCli;
129
129
  })(RunCommand = exports.RunCommand || (exports.RunCommand = {}));
130
+ exports.RunCommand = RunCommand;
@@ -153,8 +153,8 @@ class VersionCommand extends run_command_js_1.RunCommand {
153
153
  return super._exec(pkg, command, args, options);
154
154
  }
155
155
  }
156
- exports.VersionCommand = VersionCommand;
157
156
  VersionCommand.commandName = 'version';
157
+ exports.VersionCommand = VersionCommand;
158
158
  (function (VersionCommand) {
159
159
  VersionCommand.cliCommandOptions = {
160
160
  'unified': {
@@ -198,3 +198,4 @@ VersionCommand.commandName = 'version';
198
198
  }
199
199
  VersionCommand.initCli = initCli;
200
200
  })(VersionCommand = exports.VersionCommand || (exports.VersionCommand = {}));
201
+ exports.VersionCommand = VersionCommand;
package/cjs/utils/exec.js CHANGED
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.exec = void 0;
7
4
  const child_process_1 = require("child_process");
8
- const signal_exit_1 = __importDefault(require("signal-exit"));
5
+ const signal_exit_1 = require("signal-exit");
9
6
  const npm_run_path_js_1 = require("./npm-run-path.js");
10
7
  const runningChildren = new Map();
11
8
  async function exec(command, options) {
@@ -106,7 +103,7 @@ async function exec(command, options) {
106
103
  });
107
104
  }
108
105
  exports.exec = exec;
109
- (0, signal_exit_1.default)(() => {
106
+ (0, signal_exit_1.onExit)(() => {
110
107
  runningChildren.forEach((child) => {
111
108
  child.kill();
112
109
  });
@@ -1,12 +1,13 @@
1
1
  import { Command } from '../core/command.js';
2
2
  import { RunCommand } from './run-command.js';
3
- export class BuildCommand extends RunCommand {
3
+ class BuildCommand extends RunCommand {
4
4
  constructor(repository, options) {
5
5
  super(repository, 'build', options);
6
6
  this.repository = repository;
7
7
  }
8
8
  }
9
9
  BuildCommand.commandName = 'build';
10
+ export { BuildCommand };
10
11
  (function (BuildCommand) {
11
12
  function initCli(repository, program) {
12
13
  program.command({
@@ -1,6 +1,6 @@
1
1
  import { Command } from '../core/command.js';
2
2
  import { ListCommand } from './list-command.js';
3
- export class ChangedCommand extends ListCommand {
3
+ class ChangedCommand extends ListCommand {
4
4
  constructor(repository, options) {
5
5
  super(repository, options);
6
6
  this.repository = repository;
@@ -12,6 +12,7 @@ export class ChangedCommand extends ListCommand {
12
12
  }
13
13
  }
14
14
  ChangedCommand.commandName = 'changed';
15
+ export { ChangedCommand };
15
16
  (function (ChangedCommand) {
16
17
  function initCli(repository, program) {
17
18
  program.command({
@@ -5,7 +5,7 @@ import { Task } from 'power-tasks';
5
5
  import { Command } from '../core/command.js';
6
6
  import { fsDelete, fsExists } from '../utils/file-utils.js';
7
7
  import { RunCommand } from './run-command.js';
8
- export class CleanInstallCommand extends RunCommand {
8
+ class CleanInstallCommand extends RunCommand {
9
9
  constructor(repository, options) {
10
10
  super(repository, 'ci', options);
11
11
  this.repository = repository;
@@ -48,6 +48,7 @@ export class CleanInstallCommand extends RunCommand {
48
48
  }
49
49
  }
50
50
  CleanInstallCommand.commandName = 'ci';
51
+ export { CleanInstallCommand };
51
52
  (function (CleanInstallCommand) {
52
53
  CleanInstallCommand.cliCommandOptions = {
53
54
  ...RunCommand.cliCommandOptions
@@ -4,7 +4,7 @@ import { Task } from 'power-tasks';
4
4
  import { Command } from '../core/command.js';
5
5
  import { exec } from '../utils/exec.js';
6
6
  import { MultiTaskCommand } from './multi-task-command.js';
7
- export class ExecuteCommand extends MultiTaskCommand {
7
+ class ExecuteCommand extends MultiTaskCommand {
8
8
  constructor(repository, cmd, argv, options) {
9
9
  super(repository, options);
10
10
  this.repository = repository;
@@ -35,6 +35,7 @@ export class ExecuteCommand extends MultiTaskCommand {
35
35
  }
36
36
  }
37
37
  ExecuteCommand.commandName = 'exec';
38
+ export { ExecuteCommand };
38
39
  (function (ExecuteCommand) {
39
40
  ExecuteCommand.cliCommandOptions = {
40
41
  ...MultiTaskCommand.cliCommandOptions
@@ -2,7 +2,7 @@ import chalk from 'chalk';
2
2
  import envinfo from 'envinfo';
3
3
  import semver from 'semver';
4
4
  import { Command } from '../core/command.js';
5
- export class InfoCommand extends Command {
5
+ class InfoCommand extends Command {
6
6
  async _execute() {
7
7
  const systemInfo = JSON.parse(await envinfo.run({
8
8
  System: ['OS', 'CPU', 'Memory', 'Shell'],
@@ -38,6 +38,7 @@ export class InfoCommand extends Command {
38
38
  }
39
39
  }
40
40
  InfoCommand.commandName = 'info';
41
+ export { InfoCommand };
41
42
  (function (InfoCommand) {
42
43
  function initCli(repository, program) {
43
44
  program.command({
@@ -4,7 +4,7 @@ import logger from 'npmlog';
4
4
  import path from 'path';
5
5
  import { Command } from '../core/command.js';
6
6
  import { GitHelper } from '../utils/git-utils.js';
7
- export class ListCommand extends Command {
7
+ class ListCommand extends Command {
8
8
  constructor(repository, options) {
9
9
  super(options);
10
10
  this.repository = repository;
@@ -92,6 +92,7 @@ export class ListCommand extends Command {
92
92
  }
93
93
  }
94
94
  ListCommand.commandName = 'list';
95
+ export { ListCommand };
95
96
  (function (ListCommand) {
96
97
  ListCommand.cliCommandOptions = {
97
98
  'short': {
@@ -4,7 +4,7 @@ import path from 'path';
4
4
  import { Command } from '../core/command.js';
5
5
  import { NpmHelper } from '../utils/npm-utils.js';
6
6
  import { RunCommand } from './run-command.js';
7
- export class PublishCommand extends RunCommand {
7
+ class PublishCommand extends RunCommand {
8
8
  constructor(repository, options) {
9
9
  super(repository, 'publish', {
10
10
  ...options,
@@ -70,6 +70,7 @@ export class PublishCommand extends RunCommand {
70
70
  }
71
71
  }
72
72
  PublishCommand.commandName = 'publish';
73
+ export { PublishCommand };
73
74
  (function (PublishCommand) {
74
75
  PublishCommand.cliCommandOptions = {
75
76
  ...RunCommand.cliCommandOptions,
@@ -5,7 +5,7 @@ import parseNpmScript from '@netlify/parse-npm-script';
5
5
  import { Command } from '../core/command.js';
6
6
  import { exec } from '../utils/exec.js';
7
7
  import { MultiTaskCommand } from './multi-task-command.js';
8
- export class RunCommand extends MultiTaskCommand {
8
+ class RunCommand extends MultiTaskCommand {
9
9
  constructor(repository, script, options) {
10
10
  super(repository, options);
11
11
  this.repository = repository;
@@ -86,6 +86,7 @@ export class RunCommand extends MultiTaskCommand {
86
86
  }
87
87
  }
88
88
  RunCommand.commandName = 'run';
89
+ export { RunCommand };
89
90
  (function (RunCommand) {
90
91
  RunCommand.cliCommandOptions = {
91
92
  ...MultiTaskCommand.cliCommandOptions
@@ -7,7 +7,7 @@ import stripColor from 'strip-color';
7
7
  import { Command } from '../core/command.js';
8
8
  import { GitHelper } from '../utils/git-utils.js';
9
9
  import { RunCommand } from './run-command.js';
10
- export class VersionCommand extends RunCommand {
10
+ class VersionCommand extends RunCommand {
11
11
  constructor(repository, bump, options) {
12
12
  super(repository, 'version', options);
13
13
  this.repository = repository;
@@ -148,6 +148,7 @@ export class VersionCommand extends RunCommand {
148
148
  }
149
149
  }
150
150
  VersionCommand.commandName = 'version';
151
+ export { VersionCommand };
151
152
  (function (VersionCommand) {
152
153
  VersionCommand.cliCommandOptions = {
153
154
  'unified': {
package/esm/utils/exec.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { spawn } from 'child_process';
2
- import onExit from 'signal-exit';
2
+ import { onExit } from 'signal-exit';
3
3
  import { npmRunPathEnv } from './npm-run-path.js';
4
4
  const runningChildren = new Map();
5
5
  export async function exec(command, options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rman",
3
3
  "description": "Monorepo repository manager",
4
- "version": "0.27.4",
4
+ "version": "0.28.0",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "contributors": [
@@ -39,53 +39,53 @@
39
39
  "envinfo": "^7.8.1",
40
40
  "fast-glob": "^3.2.12",
41
41
  "figures": "^5.0.0",
42
- "ini": "^3.0.1",
42
+ "ini": "^4.1.0",
43
43
  "is-ci": "^3.0.1",
44
44
  "js-yaml": "^4.1.0",
45
45
  "npmlog": "^7.0.1",
46
46
  "path-key": "^4.0.0",
47
- "power-tasks": "^1.6.4",
48
- "putil-merge": "^3.10.1",
47
+ "power-tasks": "^1.7.0",
48
+ "putil-merge": "^3.10.3",
49
49
  "putil-varhelpers": "^1.6.5",
50
- "semver": "^7.3.8",
51
- "signal-exit": "^3.0.7",
50
+ "semver": "^7.5.1",
51
+ "signal-exit": "^4.0.2",
52
52
  "strict-typed-events": "^2.3.1",
53
53
  "strip-color": "^0.1.0",
54
- "yargs": "^17.6.2"
54
+ "yargs": "^17.7.2"
55
55
  },
56
56
  "devDependencies": {
57
- "@babel/eslint-parser": "^7.19.1",
57
+ "@babel/eslint-parser": "^7.21.8",
58
58
  "@types/envinfo": "^7.8.1",
59
59
  "@types/ini": "^1.3.31",
60
60
  "@types/is-ci": "^3.0.0",
61
- "@types/jest": "^29.2.6",
61
+ "@types/jest": "^29.5.1",
62
62
  "@types/js-yaml": "^4.0.5",
63
- "@types/node": "^18.11.18",
63
+ "@types/node": "^20.1.5",
64
64
  "@types/npmlog": "^4.1.4",
65
- "@types/semver": "^7.3.13",
65
+ "@types/semver": "^7.5.0",
66
66
  "@types/signal-exit": "^3.0.1",
67
67
  "@types/strip-color": "^0.1.0",
68
- "@types/yargs": "^17.0.20",
69
- "@typescript-eslint/eslint-plugin": "^5.49.0",
70
- "@typescript-eslint/parser": "^5.49.0",
71
- "eslint": "^8.32.0",
68
+ "@types/yargs": "^17.0.24",
69
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
70
+ "@typescript-eslint/parser": "^5.59.6",
71
+ "eslint": "^8.40.0",
72
72
  "eslint-config-google": "^0.14.0",
73
73
  "eslint-plugin-import": "^2.27.5",
74
- "eslint-plugin-security": "^1.6.0",
75
- "eslint-plugin-simple-import-sort": "^9.0.0",
74
+ "eslint-plugin-security": "^1.7.1",
75
+ "eslint-plugin-simple-import-sort": "^10.0.0",
76
76
  "eslint-plugin-unused-imports": "^2.0.0",
77
- "jest": "^29.3.1",
78
- "prettier": "^2.8.3",
77
+ "jest": "^29.5.0",
78
+ "prettier": "^2.8.8",
79
79
  "ts-cleanup": "^0.2.6",
80
- "ts-gems": "^2.3.0",
81
- "ts-jest": "^29.0.5",
80
+ "ts-gems": "^2.4.0",
81
+ "ts-jest": "^29.1.0",
82
82
  "ts-loader": "^9.4.2",
83
83
  "ts-node": "^10.9.1",
84
- "tsconfig-paths": "^4.1.2",
85
- "typescript": "^4.9.4"
84
+ "tsconfig-paths": "^4.2.0",
85
+ "typescript": "^5.0.4"
86
86
  },
87
87
  "engines": {
88
- "node": ">=14.0",
88
+ "node": ">=16.0",
89
89
  "npm": ">=7.0.0"
90
90
  },
91
91
  "files": [