@virmator/deps 14.10.2 → 14.11.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.
@@ -110,7 +110,7 @@ export function defineConfig({
110
110
  'npm-unknown',
111
111
  ],
112
112
  pathNot: [
113
- '^src/',
113
+ '^(src|packages/[^/]+/src)/',
114
114
  ],
115
115
  },
116
116
  },
@@ -144,7 +144,7 @@ export function defineConfig({
144
144
  'npm-peer',
145
145
  ],
146
146
  pathNot: [
147
- '^src/',
147
+ '^(src|packages/[^/]+/src)/',
148
148
  ],
149
149
  },
150
150
  },
package/dist/deps.js CHANGED
@@ -160,30 +160,42 @@ export const virmatorDepsPlugin = defineVirmatorPlugin(import.meta.dirname, {
160
160
  inputPath: join(monoRepoRootPath, configs.deps.subCommands.check.configs.depCruiser.copyToPath),
161
161
  outputPath: join(cwdPackagePath, 'node_modules', '.virmator', 'dep-cruiser.config.cjs'),
162
162
  }, JsModuleType.Cjs, async (configPath) => {
163
- function defineCommand(relativeTo) {
164
- const config = args['config']
163
+ function buildConfigFlags(relativeTo) {
164
+ return args['config']
165
165
  ? ['']
166
166
  : [
167
167
  '--config',
168
168
  toPosixPath(relative(relativeTo, configPath)),
169
169
  ];
170
- return [
171
- 'npx',
172
- 'depcruise',
173
- ...config,
174
- pathToCheck,
175
- ...filteredArgs,
176
- ]
177
- .filter(check.isTruthy)
178
- .join(' ');
179
170
  }
180
171
  if (packageType === PackageType.MonoRoot) {
181
172
  await runPerPackage(({ packageCwd }) => {
182
- return defineCommand(packageCwd);
173
+ const relativeToRoot = toPosixPath(relative(packageCwd, cwd));
174
+ const packageRelPath = toPosixPath(relative(cwd, packageCwd));
175
+ return [
176
+ 'cd',
177
+ relativeToRoot,
178
+ '&&',
179
+ 'npx',
180
+ 'depcruise',
181
+ ...buildConfigFlags(cwd),
182
+ pathToCheck ? toPosixPath(join(packageRelPath, pathToCheck)) : '',
183
+ ...filteredArgs,
184
+ ]
185
+ .filter(check.isTruthy)
186
+ .join(' ');
183
187
  });
184
188
  }
185
189
  else {
186
- await runShellCommand(defineCommand(cwd));
190
+ await runShellCommand([
191
+ 'npx',
192
+ 'depcruise',
193
+ ...buildConfigFlags(cwd),
194
+ pathToCheck,
195
+ ...filteredArgs,
196
+ ]
197
+ .filter(check.isTruthy)
198
+ .join(' '));
187
199
  }
188
200
  });
189
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/deps",
3
- "version": "14.10.2",
3
+ "version": "14.11.0",
4
4
  "description": "Default TS deps plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -34,21 +34,21 @@
34
34
  "test:update": "npm test update"
35
35
  },
36
36
  "dependencies": {
37
- "@augment-vir/assert": "^31.68.1",
38
- "@augment-vir/common": "^31.68.1",
39
- "@augment-vir/node": "^31.68.1",
37
+ "@augment-vir/assert": "^31.68.3",
38
+ "@augment-vir/common": "^31.68.3",
39
+ "@augment-vir/node": "^31.68.3",
40
40
  "@npm/types": "^2.1.0",
41
- "@virmator/core": "^14.10.2",
41
+ "@virmator/core": "^14.11.0",
42
42
  "mri": "^1.2.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@augment-vir/test": "^31.68.1",
46
- "@types/node": "^25.3.0",
45
+ "@augment-vir/test": "^31.68.3",
46
+ "@types/node": "^25.5.2",
47
47
  "c8": "^11.0.0",
48
- "dependency-cruiser": "^17.3.8",
49
- "esbuild": "^0.27.3",
48
+ "dependency-cruiser": "^17.3.10",
49
+ "esbuild": "^0.28.0",
50
50
  "istanbul-smart-text-reporter": "^1.1.5",
51
- "npm-check-updates": "^19.6.3"
51
+ "npm-check-updates": "^20.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "npm-check-updates": ">=19"