@virmator/deps 14.31.0 → 14.32.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/dist/deps.js +14 -17
- package/package.json +2 -2
package/dist/deps.js
CHANGED
|
@@ -225,7 +225,7 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
225
225
|
},
|
|
226
226
|
},
|
|
227
227
|
},
|
|
228
|
-
}, async ({ cliInputs: { filteredArgs, usedCommands }, package: { monoRepoRootPath, packageType, cwdPackagePath, monoRepoPackages }, configs, log,
|
|
228
|
+
}, async ({ cliInputs: { filteredArgs, usedCommands }, package: { monoRepoRootPath, packageType, cwdPackagePath, monoRepoPackages }, configs, log, runShellCommand, cwd, }) => {
|
|
229
229
|
if (usedCommands.deps?.subCommands.check) {
|
|
230
230
|
const args = mri(filteredArgs);
|
|
231
231
|
const pathToCheck = args._.length ? '' : 'src';
|
|
@@ -242,22 +242,19 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
242
242
|
];
|
|
243
243
|
}
|
|
244
244
|
if (packageType === PackageType.MonoRoot) {
|
|
245
|
-
await
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
.filter(check.isTruthy)
|
|
259
|
-
.join(' ');
|
|
260
|
-
});
|
|
245
|
+
await runShellCommand([
|
|
246
|
+
'npx',
|
|
247
|
+
'depcruise',
|
|
248
|
+
...buildConfigFlags(cwd),
|
|
249
|
+
...monoRepoPackages.map(({ relativePath }) => {
|
|
250
|
+
return pathToCheck
|
|
251
|
+
? toPosixPath(join(relativePath, pathToCheck))
|
|
252
|
+
: '';
|
|
253
|
+
}),
|
|
254
|
+
...filteredArgs,
|
|
255
|
+
]
|
|
256
|
+
.filter(check.isTruthy)
|
|
257
|
+
.join(' '));
|
|
261
258
|
}
|
|
262
259
|
else {
|
|
263
260
|
await runShellCommand([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/deps",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.32.0",
|
|
4
4
|
"description": "Default TS deps plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@augment-vir/common": "^32.2.2",
|
|
39
39
|
"@augment-vir/node": "^32.2.2",
|
|
40
40
|
"@npm/types": "^2.1.0",
|
|
41
|
-
"@virmator/core": "^14.
|
|
41
|
+
"@virmator/core": "^14.32.0",
|
|
42
42
|
"date-vir": "^9.1.0",
|
|
43
43
|
"mri": "^1.2.0"
|
|
44
44
|
},
|