rman 0.27.0 → 0.27.2
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/cjs/commands/ci-command.js +5 -4
- package/esm/commands/ci-command.js +5 -4
- package/package.json +11 -11
|
@@ -13,7 +13,7 @@ const file_utils_js_1 = require("../utils/file-utils.js");
|
|
|
13
13
|
const run_command_js_1 = require("./run-command.js");
|
|
14
14
|
class CleanInstallCommand extends run_command_js_1.RunCommand {
|
|
15
15
|
constructor(repository, options) {
|
|
16
|
-
super(repository, '
|
|
16
|
+
super(repository, 'ci', options);
|
|
17
17
|
this.repository = repository;
|
|
18
18
|
}
|
|
19
19
|
async _prepareTasks(packages) {
|
|
@@ -26,7 +26,7 @@ class CleanInstallCommand extends run_command_js_1.RunCommand {
|
|
|
26
26
|
await this._fsDelete(path_1.default.join(dirname, 'node_modules'));
|
|
27
27
|
await this._fsDelete(path_1.default.join(dirname, 'package-lock.json'));
|
|
28
28
|
await this._fsDelete(path_1.default.join(dirname, 'yarn-lock.json'));
|
|
29
|
-
npmlog_1.default.info(this.commandName, chalk_1.default.yellow('
|
|
29
|
+
npmlog_1.default.info(this.commandName, chalk_1.default.yellow('install'), 'Running ' + client + ' install');
|
|
30
30
|
return super._exec(this.repository.rootPackage, client + ' install', {
|
|
31
31
|
stdio: 'inherit'
|
|
32
32
|
});
|
|
@@ -34,9 +34,10 @@ class CleanInstallCommand extends run_command_js_1.RunCommand {
|
|
|
34
34
|
return tasks;
|
|
35
35
|
}
|
|
36
36
|
async _exec(pkg, command, args, ctx) {
|
|
37
|
-
if (
|
|
37
|
+
if (command === '#') {
|
|
38
38
|
if (pkg === this.repository.rootPackage)
|
|
39
39
|
return { code: 0 };
|
|
40
|
+
npmlog_1.default.info(this.commandName, 'Clearing ' + pkg.name);
|
|
40
41
|
const cwd = args.cwd || pkg.dirname;
|
|
41
42
|
await this._fsDelete(path_1.default.join(cwd, 'node_modules'));
|
|
42
43
|
await this._fsDelete(path_1.default.join(cwd, 'package-lock.json'));
|
|
@@ -47,7 +48,7 @@ class CleanInstallCommand extends run_command_js_1.RunCommand {
|
|
|
47
48
|
}
|
|
48
49
|
async _fsDelete(fileOrDir) {
|
|
49
50
|
if (await (0, file_utils_js_1.fsExists)(fileOrDir)) {
|
|
50
|
-
npmlog_1.default.info(this.commandName, chalk_1.default.yellow('
|
|
51
|
+
npmlog_1.default.info(this.commandName, chalk_1.default.yellow('rmdir'), path_1.default.relative(this.repository.dirname, fileOrDir));
|
|
51
52
|
await (0, file_utils_js_1.fsDelete)(fileOrDir);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -7,7 +7,7 @@ import { fsDelete, fsExists } from '../utils/file-utils.js';
|
|
|
7
7
|
import { RunCommand } from './run-command.js';
|
|
8
8
|
export class CleanInstallCommand extends RunCommand {
|
|
9
9
|
constructor(repository, options) {
|
|
10
|
-
super(repository, '
|
|
10
|
+
super(repository, 'ci', options);
|
|
11
11
|
this.repository = repository;
|
|
12
12
|
}
|
|
13
13
|
async _prepareTasks(packages) {
|
|
@@ -20,7 +20,7 @@ export class CleanInstallCommand extends RunCommand {
|
|
|
20
20
|
await this._fsDelete(path.join(dirname, 'node_modules'));
|
|
21
21
|
await this._fsDelete(path.join(dirname, 'package-lock.json'));
|
|
22
22
|
await this._fsDelete(path.join(dirname, 'yarn-lock.json'));
|
|
23
|
-
logger.info(this.commandName, chalk.yellow('
|
|
23
|
+
logger.info(this.commandName, chalk.yellow('install'), 'Running ' + client + ' install');
|
|
24
24
|
return super._exec(this.repository.rootPackage, client + ' install', {
|
|
25
25
|
stdio: 'inherit'
|
|
26
26
|
});
|
|
@@ -28,9 +28,10 @@ export class CleanInstallCommand extends RunCommand {
|
|
|
28
28
|
return tasks;
|
|
29
29
|
}
|
|
30
30
|
async _exec(pkg, command, args, ctx) {
|
|
31
|
-
if (
|
|
31
|
+
if (command === '#') {
|
|
32
32
|
if (pkg === this.repository.rootPackage)
|
|
33
33
|
return { code: 0 };
|
|
34
|
+
logger.info(this.commandName, 'Clearing ' + pkg.name);
|
|
34
35
|
const cwd = args.cwd || pkg.dirname;
|
|
35
36
|
await this._fsDelete(path.join(cwd, 'node_modules'));
|
|
36
37
|
await this._fsDelete(path.join(cwd, 'package-lock.json'));
|
|
@@ -41,7 +42,7 @@ export class CleanInstallCommand extends RunCommand {
|
|
|
41
42
|
}
|
|
42
43
|
async _fsDelete(fileOrDir) {
|
|
43
44
|
if (await fsExists(fileOrDir)) {
|
|
44
|
-
logger.info(this.commandName, chalk.yellow('
|
|
45
|
+
logger.info(this.commandName, chalk.yellow('rmdir'), path.relative(this.repository.dirname, fileOrDir));
|
|
45
46
|
await fsDelete(fileOrDir);
|
|
46
47
|
}
|
|
47
48
|
}
|
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
|
+
"version": "0.27.2",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"npmlog": "^7.0.1",
|
|
46
46
|
"path-key": "^4.0.0",
|
|
47
47
|
"power-tasks": "^1.6.1",
|
|
48
|
-
"putil-merge": "^3.
|
|
49
|
-
"putil-varhelpers": "^1.6.
|
|
48
|
+
"putil-merge": "^3.10.1",
|
|
49
|
+
"putil-varhelpers": "^1.6.5",
|
|
50
50
|
"semver": "^7.3.8",
|
|
51
51
|
"signal-exit": "^3.0.7",
|
|
52
52
|
"strict-typed-events": "^2.3.1",
|
|
@@ -58,30 +58,30 @@
|
|
|
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.
|
|
61
|
+
"@types/jest": "^29.2.5",
|
|
62
62
|
"@types/js-yaml": "^4.0.5",
|
|
63
63
|
"@types/node": "^18.11.18",
|
|
64
64
|
"@types/npmlog": "^4.1.4",
|
|
65
65
|
"@types/semver": "^7.3.13",
|
|
66
66
|
"@types/signal-exit": "^3.0.1",
|
|
67
67
|
"@types/strip-color": "^0.1.0",
|
|
68
|
-
"@types/yargs": "^17.0.
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
70
|
-
"@typescript-eslint/parser": "^5.
|
|
71
|
-
"eslint": "^8.
|
|
68
|
+
"@types/yargs": "^17.0.19",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
|
70
|
+
"@typescript-eslint/parser": "^5.48.1",
|
|
71
|
+
"eslint": "^8.31.0",
|
|
72
72
|
"eslint-config-google": "^0.14.0",
|
|
73
73
|
"eslint-plugin-import": "^2.26.0",
|
|
74
74
|
"eslint-plugin-security": "^1.5.0",
|
|
75
75
|
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
76
76
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
77
77
|
"jest": "^29.3.1",
|
|
78
|
-
"prettier": "^2.8.
|
|
79
|
-
"ts-cleanup": "^0.2.
|
|
78
|
+
"prettier": "^2.8.2",
|
|
79
|
+
"ts-cleanup": "^0.2.6",
|
|
80
80
|
"ts-gems": "^2.3.0",
|
|
81
81
|
"ts-jest": "^29.0.3",
|
|
82
82
|
"ts-loader": "^9.4.2",
|
|
83
83
|
"ts-node": "^10.9.1",
|
|
84
|
-
"tsconfig-paths": "^4.1.
|
|
84
|
+
"tsconfig-paths": "^4.1.2",
|
|
85
85
|
"typescript": "^4.9.4"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|