@sprucelabs/resolve-path-aliases 2.0.543 → 2.0.544

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.
@@ -8,7 +8,8 @@ const path_1 = __importDefault(require("path"));
8
8
  const chalk_1 = __importDefault(require("chalk"));
9
9
  const yargs_1 = __importDefault(require("yargs"));
10
10
  const index_1 = require("./index");
11
- const argv = yargs_1.default.options({
11
+ const argv = (0, yargs_1.default)(process.argv.slice(2))
12
+ .options({
12
13
  target: {
13
14
  desc: "Where I'll look to begin mapping paths. Defaults to cwd.",
14
15
  },
@@ -23,7 +24,8 @@ const argv = yargs_1.default.options({
23
24
  valid: '',
24
25
  desc: 'Should paths resolve relatively or absolutely, valid values are `absolute` or `relative`.',
25
26
  },
26
- }).argv;
27
+ })
28
+ .parseSync();
27
29
  const { patterns, target, absoluteOrRelative, verbose } = argv;
28
30
  const cwd = target && target[0] === path_1.default.sep
29
31
  ? target
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprucelabs/resolve-path-aliases",
3
- "version": "2.0.543",
3
+ "version": "2.0.544",
4
4
  "description": "Script that resolves paths from your tsconfig",
5
5
  "main": "build/index.js",
6
6
  "repository": "git@github.com:sprucelabsai-community/resolve-path-aliases.git",
@@ -53,24 +53,24 @@
53
53
  "watch.tsc": "tsc -w"
54
54
  },
55
55
  "dependencies": {
56
- "@sprucelabs/globby": "^2.0.502",
56
+ "@sprucelabs/globby": "^2.0.503",
57
57
  "chalk": "^4.1.2",
58
58
  "tsconfig-paths": "^4.2.0",
59
- "yargs": "^17.7.2"
59
+ "yargs": "^18.0.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@sprucelabs/semantic-release": "^5.0.2",
63
- "@sprucelabs/test": "^9.0.82",
63
+ "@sprucelabs/test": "^9.0.83",
64
64
  "@types/fs-extra": "^11.0.4",
65
65
  "chokidar-cli": "^3.0.0",
66
- "eslint": "^9.27.0",
66
+ "eslint": "^9.28.0",
67
67
  "eslint-config-spruce": "^11.2.26",
68
68
  "fs-extra": "^11.3.0",
69
69
  "jest": "^29.7.0",
70
70
  "prettier": "^3.5.3",
71
71
  "rimraf": "^6.0.1",
72
72
  "ts-node": "^10.9.2",
73
- "tsc-watch": "^7.0.0",
73
+ "tsc-watch": "^7.1.1",
74
74
  "typescript": "^5.8.3"
75
75
  },
76
76
  "jest": {