rman 0.16.1 → 0.18.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.
- package/cjs/cli.js +29 -28
- package/cjs/commands/build-command.js +4 -4
- package/cjs/commands/changed-command.js +5 -5
- package/cjs/commands/ci-command.js +9 -9
- package/cjs/commands/execute-command.js +8 -8
- package/cjs/commands/info-command.js +3 -3
- package/cjs/commands/list-command.js +7 -6
- package/cjs/commands/multi-task-command.js +4 -6
- package/cjs/commands/publish-command.js +35 -15
- package/cjs/commands/run-command.js +8 -8
- package/cjs/commands/version-command.js +10 -10
- package/cjs/core/command.js +8 -8
- package/cjs/core/constants.js +2 -2
- package/cjs/core/repository.js +7 -7
- package/cjs/index.js +1 -1
- package/cjs/utils/exec.js +2 -2
- package/cjs/utils/file-utils.js +1 -2
- package/cjs/utils/get-dirname.js +1 -3
- package/cjs/utils/git-utils.js +5 -5
- package/cjs/utils/npm-run-path.js +1 -1
- package/cjs/utils/npm-utils.js +2 -2
- package/esm/{cli.mjs → cli.js} +16 -15
- package/esm/commands/build-command.d.ts +2 -2
- package/esm/commands/{build-command.mjs → build-command.js} +2 -2
- package/esm/commands/changed-command.d.ts +3 -3
- package/esm/commands/{changed-command.mjs → changed-command.js} +2 -2
- package/esm/commands/ci-command.d.ts +5 -5
- package/esm/commands/{ci-command.mjs → ci-command.js} +4 -4
- package/esm/commands/execute-command.d.ts +4 -4
- package/esm/commands/{execute-command.mjs → execute-command.js} +4 -4
- package/esm/commands/info-command.d.ts +2 -2
- package/esm/commands/{info-command.mjs → info-command.js} +1 -1
- package/esm/commands/list-command.d.ts +4 -4
- package/esm/commands/{list-command.mjs → list-command.js} +4 -3
- package/esm/commands/multi-task-command.d.ts +4 -4
- package/esm/commands/{multi-task-command.mjs → multi-task-command.js} +2 -4
- package/esm/commands/publish-command.d.ts +6 -5
- package/esm/commands/{publish-command.mjs → publish-command.js} +32 -12
- package/esm/commands/run-command.d.ts +5 -5
- package/esm/commands/{run-command.mjs → run-command.js} +5 -5
- package/esm/commands/version-command.d.ts +5 -5
- package/esm/commands/{version-command.mjs → version-command.js} +7 -7
- package/esm/core/command.d.ts +1 -1
- package/esm/core/{command.mjs → command.js} +6 -6
- package/esm/core/constants.d.ts +0 -1
- package/esm/core/constants.js +2 -0
- package/esm/core/{logger.mjs → logger.js} +0 -0
- package/esm/core/{package.mjs → package.js} +0 -0
- package/esm/core/repository.d.ts +1 -1
- package/esm/core/{repository.mjs → repository.js} +4 -4
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -0
- package/esm/utils/{exec.mjs → exec.js} +1 -1
- package/esm/utils/file-utils.d.ts +0 -2
- package/esm/utils/{file-utils.mjs → file-utils.js} +0 -1
- package/esm/utils/{get-dirname.mjs → get-dirname.js} +1 -3
- package/esm/utils/{git-utils.mjs → git-utils.js} +1 -1
- package/esm/utils/{npm-run-path.mjs → npm-run-path.js} +1 -1
- package/esm/utils/{npm-utils.mjs → npm-utils.js} +1 -1
- package/package.json +32 -28
- package/cjs/core/types.js +0 -2
- package/cjs/debug.js +0 -5
- package/esm/core/constants.mjs +0 -2
- package/esm/core/types.d.ts +0 -14
- package/esm/core/types.mjs +0 -1
- package/esm/debug.d.ts +0 -1
- package/esm/debug.mjs +0 -3
- package/esm/index.mjs +0 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
// noinspection ES6UnusedImports
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3
|
-
import path from 'path';
|
|
4
1
|
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
5
3
|
export function getDirname() {
|
|
6
4
|
const pst = Error.prepareStackTrace;
|
|
7
5
|
Error.prepareStackTrace = function (_, stack) {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Inspired from [npm-run-path](https://github.com/sindresorhus/npm-run-path)
|
|
4
4
|
*/
|
|
5
|
-
import process from 'process';
|
|
6
5
|
import path from 'path';
|
|
7
6
|
import pathKey from 'path-key';
|
|
7
|
+
import process from 'process';
|
|
8
8
|
/**
|
|
9
9
|
Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries.
|
|
10
10
|
@returns The augmented path string.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rman",
|
|
3
3
|
"description": "Monorepo repository manager",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.0",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
@@ -24,60 +24,64 @@
|
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"main": "cjs/index.js",
|
|
27
|
-
"module": "esm/index.
|
|
27
|
+
"module": "esm/index.js",
|
|
28
28
|
"types": "esm/index.d.ts",
|
|
29
29
|
"exports": {
|
|
30
30
|
".": "./cjs/index.js",
|
|
31
31
|
"./cjs": "./cjs/index.js",
|
|
32
|
-
"./esm": "./esm/index.
|
|
32
|
+
"./esm": "./esm/index.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@netlify/parse-npm-script": "^0.1.2",
|
|
36
36
|
"chalk": "^5.0.1",
|
|
37
37
|
"easy-table": "^1.2.0",
|
|
38
38
|
"envinfo": "^7.8.1",
|
|
39
|
-
"fast-glob": "^3.2.
|
|
40
|
-
"figures": "^
|
|
41
|
-
"ini": "^3.0.
|
|
39
|
+
"fast-glob": "^3.2.12",
|
|
40
|
+
"figures": "^5.0.0",
|
|
41
|
+
"ini": "^3.0.1",
|
|
42
42
|
"is-ci": "^3.0.1",
|
|
43
43
|
"js-yaml": "^4.1.0",
|
|
44
44
|
"npmlog": "^6.0.2",
|
|
45
45
|
"path-key": "^4.0.0",
|
|
46
|
-
"power-tasks": "^0.
|
|
46
|
+
"power-tasks": "^0.8.0",
|
|
47
47
|
"putil-merge": "^3.8.0",
|
|
48
48
|
"putil-varhelpers": "^1.6.4",
|
|
49
49
|
"semver": "^7.3.7",
|
|
50
50
|
"signal-exit": "^3.0.7",
|
|
51
|
-
"strict-typed-events": "^2.
|
|
51
|
+
"strict-typed-events": "^2.2.0",
|
|
52
52
|
"strip-color": "^0.1.0",
|
|
53
53
|
"yargs": "^17.5.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/eslint-parser": "^7.
|
|
56
|
+
"@babel/eslint-parser": "^7.18.9",
|
|
57
57
|
"@types/envinfo": "^7.8.1",
|
|
58
58
|
"@types/ini": "^1.3.31",
|
|
59
59
|
"@types/is-ci": "^3.0.0",
|
|
60
|
-
"@types/jest": "^
|
|
60
|
+
"@types/jest": "^29.0.2",
|
|
61
61
|
"@types/js-yaml": "^4.0.5",
|
|
62
|
-
"@types/node": "^
|
|
62
|
+
"@types/node": "^18.7.18",
|
|
63
63
|
"@types/npmlog": "^4.1.4",
|
|
64
|
-
"@types/semver": "^7.3.
|
|
64
|
+
"@types/semver": "^7.3.12",
|
|
65
65
|
"@types/signal-exit": "^3.0.1",
|
|
66
66
|
"@types/strip-color": "^0.1.0",
|
|
67
|
-
"@types/yargs": "^17.0.
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
69
|
-
"@typescript-eslint/parser": "^5.
|
|
70
|
-
"eslint": "
|
|
67
|
+
"@types/yargs": "^17.0.12",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
69
|
+
"@typescript-eslint/parser": "^5.37.0",
|
|
70
|
+
"eslint": "8.21.0",
|
|
71
71
|
"eslint-config-google": "^0.14.0",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
72
|
+
"eslint-plugin-import": "^2.26.0",
|
|
73
|
+
"eslint-plugin-security": "^1.5.0",
|
|
74
|
+
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
75
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
76
|
+
"jest": "^29.0.3",
|
|
77
|
+
"prettier": "^2.7.1",
|
|
78
|
+
"ts-cleanup": "^0.2.5",
|
|
79
|
+
"ts-gems": "^2.2.0",
|
|
80
|
+
"ts-jest": "^29.0.1",
|
|
81
|
+
"ts-loader": "^9.3.1",
|
|
82
|
+
"ts-node": "^10.9.1",
|
|
83
|
+
"tsconfig-paths": "^4.1.0",
|
|
84
|
+
"typescript": "^4.8.3"
|
|
81
85
|
},
|
|
82
86
|
"engines": {
|
|
83
87
|
"node": ">=14.0",
|
|
@@ -92,14 +96,14 @@
|
|
|
92
96
|
],
|
|
93
97
|
"scripts": {
|
|
94
98
|
"compile": "tsc -b tsconfig.json",
|
|
95
|
-
"lint": "eslint
|
|
99
|
+
"lint": "eslint .",
|
|
96
100
|
"clean": "npm run clean:src && npm run clean:dist",
|
|
97
101
|
"clean:dist": "rimraf cjs esm coverage",
|
|
98
102
|
"clean:src": "ts-cleanup -s src --all | ts-cleanup -s test",
|
|
99
103
|
"prebuild": "npm run clean:dist && npm run lint",
|
|
100
104
|
"build": "npm run build:cjs && npm run build:esm",
|
|
101
|
-
"build:cjs": "tsc -b tsconfig
|
|
102
|
-
"build:esm": "tsc -b tsconfig
|
|
105
|
+
"build:cjs": "tsc -b tsconfig-build-cjs.json",
|
|
106
|
+
"build:esm": "tsc -b tsconfig-build-esm.json",
|
|
103
107
|
"postbuild": "cp package.cjs.json ./cjs/package.json",
|
|
104
108
|
"test": "jest",
|
|
105
109
|
"cover": "rimraf coverage",
|
package/cjs/core/types.js
DELETED
package/cjs/debug.js
DELETED
package/esm/core/constants.mjs
DELETED
package/esm/core/types.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface IWorkspaceProvider {
|
|
2
|
-
parse: (root: string) => IWorkspaceInfo | undefined;
|
|
3
|
-
}
|
|
4
|
-
export interface IWorkspaceInfo {
|
|
5
|
-
dirname: string;
|
|
6
|
-
pkgJson: any;
|
|
7
|
-
packages: string[];
|
|
8
|
-
}
|
|
9
|
-
export interface Logger {
|
|
10
|
-
info: (message?: any, ...optionalParams: any[]) => void;
|
|
11
|
-
error: (message?: any, ...optionalParams: any[]) => void;
|
|
12
|
-
log: (message?: any, ...optionalParams: any[]) => void;
|
|
13
|
-
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
14
|
-
}
|
package/esm/core/types.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/esm/debug.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/esm/debug.mjs
DELETED
package/esm/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './core/repository.mjs';
|