@webpieces/dev-config 0.2.91 → 0.2.93

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 (2) hide show
  1. package/package.json +1 -1
  2. package/plugin.js +13 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/dev-config",
3
- "version": "0.2.91",
3
+ "version": "0.2.93",
4
4
  "description": "Development configuration, scripts, and patterns for WebPieces projects",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/plugin.js CHANGED
@@ -174,7 +174,9 @@ function buildValidationTargetsList(validations) {
174
174
  if (validations.validatePackageJson)
175
175
  targets.push('validate-packagejson');
176
176
  // Use combined validate-code instead of 3 separate targets
177
- if (validations.validateNewMethods || validations.validateModifiedMethods || validations.validateModifiedFiles) {
177
+ if (validations.validateNewMethods ||
178
+ validations.validateModifiedMethods ||
179
+ validations.validateModifiedFiles) {
178
180
  targets.push('validate-code');
179
181
  }
180
182
  if (validations.validateVersionsLocked)
@@ -211,7 +213,9 @@ function createWorkspaceTargetsWithoutPrefix(opts) {
211
213
  }
212
214
  // Use combined validate-code instead of 3 separate targets
213
215
  // Options come from targetDefaults in nx.json (applied at runtime, no cache issues)
214
- if (validations.validateNewMethods || validations.validateModifiedMethods || validations.validateModifiedFiles) {
216
+ if (validations.validateNewMethods ||
217
+ validations.validateModifiedMethods ||
218
+ validations.validateModifiedFiles) {
215
219
  targets['validate-code'] = createValidateCodeTarget();
216
220
  }
217
221
  if (validations.validateVersionsLocked) {
@@ -244,7 +248,8 @@ function createWorkspaceTargets(opts) {
244
248
  targets[`${prefix}validate-no-architecture-cycles`] = createValidateNoCyclesTarget();
245
249
  }
246
250
  if (opts.workspace.validations.architectureUnchanged) {
247
- targets[`${prefix}validate-architecture-unchanged`] = createValidateUnchangedTarget(graphPath);
251
+ targets[`${prefix}validate-architecture-unchanged`] =
252
+ createValidateUnchangedTarget(graphPath);
248
253
  }
249
254
  if (opts.workspace.validations.noSkipLevelDeps) {
250
255
  targets[`${prefix}validate-no-skiplevel-deps`] = createValidateNoSkipLevelTarget();
@@ -254,7 +259,9 @@ function createWorkspaceTargets(opts) {
254
259
  }
255
260
  // Use combined validate-code instead of 3 separate targets
256
261
  // Options come from targetDefaults in nx.json (applied at runtime, no cache issues)
257
- if (opts.workspace.validations.validateNewMethods || opts.workspace.validations.validateModifiedMethods || opts.workspace.validations.validateModifiedFiles) {
262
+ if (opts.workspace.validations.validateNewMethods ||
263
+ opts.workspace.validations.validateModifiedMethods ||
264
+ opts.workspace.validations.validateModifiedFiles) {
258
265
  targets[`${prefix}validate-code`] = createValidateCodeTarget();
259
266
  }
260
267
  return targets;
@@ -262,8 +269,7 @@ function createWorkspaceTargets(opts) {
262
269
  function createGenerateTarget(graphPath) {
263
270
  return {
264
271
  executor: '@webpieces/dev-config:generate',
265
- cache: true,
266
- inputs: ['default'],
272
+ cache: false,
267
273
  outputs: ['{workspaceRoot}/architecture/dependencies.json'],
268
274
  options: { graphPath },
269
275
  metadata: {
@@ -308,7 +314,7 @@ function createValidateNoCyclesTarget() {
308
314
  function createValidateUnchangedTarget(graphPath) {
309
315
  return {
310
316
  executor: '@webpieces/dev-config:validate-architecture-unchanged',
311
- cache: true,
317
+ cache: false,
312
318
  inputs: ['default', '{workspaceRoot}/architecture/dependencies.json'],
313
319
  options: { graphPath },
314
320
  metadata: {