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.
Files changed (68) hide show
  1. package/cjs/cli.js +29 -28
  2. package/cjs/commands/build-command.js +4 -4
  3. package/cjs/commands/changed-command.js +5 -5
  4. package/cjs/commands/ci-command.js +9 -9
  5. package/cjs/commands/execute-command.js +8 -8
  6. package/cjs/commands/info-command.js +3 -3
  7. package/cjs/commands/list-command.js +7 -6
  8. package/cjs/commands/multi-task-command.js +4 -6
  9. package/cjs/commands/publish-command.js +35 -15
  10. package/cjs/commands/run-command.js +8 -8
  11. package/cjs/commands/version-command.js +10 -10
  12. package/cjs/core/command.js +8 -8
  13. package/cjs/core/constants.js +2 -2
  14. package/cjs/core/repository.js +7 -7
  15. package/cjs/index.js +1 -1
  16. package/cjs/utils/exec.js +2 -2
  17. package/cjs/utils/file-utils.js +1 -2
  18. package/cjs/utils/get-dirname.js +1 -3
  19. package/cjs/utils/git-utils.js +5 -5
  20. package/cjs/utils/npm-run-path.js +1 -1
  21. package/cjs/utils/npm-utils.js +2 -2
  22. package/esm/{cli.mjs → cli.js} +16 -15
  23. package/esm/commands/build-command.d.ts +2 -2
  24. package/esm/commands/{build-command.mjs → build-command.js} +2 -2
  25. package/esm/commands/changed-command.d.ts +3 -3
  26. package/esm/commands/{changed-command.mjs → changed-command.js} +2 -2
  27. package/esm/commands/ci-command.d.ts +5 -5
  28. package/esm/commands/{ci-command.mjs → ci-command.js} +4 -4
  29. package/esm/commands/execute-command.d.ts +4 -4
  30. package/esm/commands/{execute-command.mjs → execute-command.js} +4 -4
  31. package/esm/commands/info-command.d.ts +2 -2
  32. package/esm/commands/{info-command.mjs → info-command.js} +1 -1
  33. package/esm/commands/list-command.d.ts +4 -4
  34. package/esm/commands/{list-command.mjs → list-command.js} +4 -3
  35. package/esm/commands/multi-task-command.d.ts +4 -4
  36. package/esm/commands/{multi-task-command.mjs → multi-task-command.js} +2 -4
  37. package/esm/commands/publish-command.d.ts +6 -5
  38. package/esm/commands/{publish-command.mjs → publish-command.js} +32 -12
  39. package/esm/commands/run-command.d.ts +5 -5
  40. package/esm/commands/{run-command.mjs → run-command.js} +5 -5
  41. package/esm/commands/version-command.d.ts +5 -5
  42. package/esm/commands/{version-command.mjs → version-command.js} +7 -7
  43. package/esm/core/command.d.ts +1 -1
  44. package/esm/core/{command.mjs → command.js} +6 -6
  45. package/esm/core/constants.d.ts +0 -1
  46. package/esm/core/constants.js +2 -0
  47. package/esm/core/{logger.mjs → logger.js} +0 -0
  48. package/esm/core/{package.mjs → package.js} +0 -0
  49. package/esm/core/repository.d.ts +1 -1
  50. package/esm/core/{repository.mjs → repository.js} +4 -4
  51. package/esm/index.d.ts +1 -1
  52. package/esm/index.js +1 -0
  53. package/esm/utils/{exec.mjs → exec.js} +1 -1
  54. package/esm/utils/file-utils.d.ts +0 -2
  55. package/esm/utils/{file-utils.mjs → file-utils.js} +0 -1
  56. package/esm/utils/{get-dirname.mjs → get-dirname.js} +1 -3
  57. package/esm/utils/{git-utils.mjs → git-utils.js} +1 -1
  58. package/esm/utils/{npm-run-path.mjs → npm-run-path.js} +1 -1
  59. package/esm/utils/{npm-utils.mjs → npm-utils.js} +1 -1
  60. package/package.json +32 -28
  61. package/cjs/core/types.js +0 -2
  62. package/cjs/debug.js +0 -5
  63. package/esm/core/constants.mjs +0 -2
  64. package/esm/core/types.d.ts +0 -14
  65. package/esm/core/types.mjs +0 -1
  66. package/esm/debug.d.ts +0 -1
  67. package/esm/debug.mjs +0 -3
  68. 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) {
@@ -1,5 +1,5 @@
1
- import { exec } from './exec.mjs';
2
1
  import path from 'path';
2
+ import { exec } from './exec.js';
3
3
  export class GitHelper {
4
4
  constructor(options) {
5
5
  this.cwd = options?.cwd || process.cwd();
@@ -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.
@@ -1,4 +1,4 @@
1
- import { exec } from './exec.mjs';
1
+ import { exec } from './exec.js';
2
2
  export class PackageNotFoundError extends Error {
3
3
  }
4
4
  export class NpmHelper {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rman",
3
3
  "description": "Monorepo repository manager",
4
- "version": "0.16.1",
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.mjs",
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.mjs"
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.11",
40
- "figures": "^4.0.1",
41
- "ini": "^3.0.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.6.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.1.0",
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.17.0",
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": "^27.5.1",
60
+ "@types/jest": "^29.0.2",
61
61
  "@types/js-yaml": "^4.0.5",
62
- "@types/node": "^17.0.34",
62
+ "@types/node": "^18.7.18",
63
63
  "@types/npmlog": "^4.1.4",
64
- "@types/semver": "^7.3.9",
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.10",
68
- "@typescript-eslint/eslint-plugin": "^5.25.0",
69
- "@typescript-eslint/parser": "^5.25.0",
70
- "eslint": "^8.15.0",
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
- "jest": "^28.1.0",
73
- "ts-cleanup": "^0.2.4",
74
- "ts-gems": "^1.5.2",
75
- "ts-jest": "^28.0.2",
76
- "ts-loader": "^9.3.0",
77
- "ts-node": "^10.7.0",
78
- "tsconfig-paths": "^4.0.0",
79
- "typescript": "^4.6.4",
80
- "typescript-esm": "^2.0.0"
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 --no-error-on-unmatched-pattern",
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.build-cjs.json",
102
- "build:esm": "tsc -b tsconfig.build-esm.json && tsc-esm -p tsconfig.build-esm.json",
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
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/cjs/debug.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const cli_1 = require("./cli");
4
- (0, cli_1.runCli)({ cwd: '/Users/ehanoglu/Yazilim/js/emr' })
5
- .catch(() => 0);
@@ -1,2 +0,0 @@
1
- export const DOTS = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
2
- export const isTTY = process.stdout.isTTY && process.env.TERM !== 'dumb';
@@ -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
- }
@@ -1 +0,0 @@
1
- export {};
package/esm/debug.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/esm/debug.mjs DELETED
@@ -1,3 +0,0 @@
1
- import { runCli } from './cli.mjs';
2
- runCli({ cwd: '/Users/ehanoglu/Yazilim/js/emr' })
3
- .catch(() => 0);
package/esm/index.mjs DELETED
@@ -1 +0,0 @@
1
- export * from './core/repository.mjs';