@nx/js 19.7.4 → 19.8.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/js",
3
- "version": "19.7.4",
3
+ "version": "19.8.0-beta.1",
4
4
  "private": false,
5
5
  "description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  "@babel/preset-env": "^7.23.2",
40
40
  "@babel/preset-typescript": "^7.22.5",
41
41
  "@babel/runtime": "^7.22.6",
42
- "@nx/devkit": "19.7.4",
43
- "@nx/workspace": "19.7.4",
42
+ "@nx/devkit": "19.8.0-beta.1",
43
+ "@nx/workspace": "19.8.0-beta.1",
44
44
  "babel-plugin-const-enum": "^1.0.1",
45
45
  "babel-plugin-macros": "^2.8.0",
46
46
  "babel-plugin-transform-typescript-metadata": "^0.3.1",
@@ -60,7 +60,7 @@
60
60
  "ts-node": "10.9.1",
61
61
  "tsconfig-paths": "^4.1.2",
62
62
  "tslib": "^2.3.0",
63
- "@nrwl/js": "19.7.4"
63
+ "@nrwl/js": "19.8.0-beta.1"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "verdaccio": "^5.0.4"
@@ -75,4 +75,4 @@
75
75
  },
76
76
  "type": "commonjs",
77
77
  "types": "./src/index.d.ts"
78
- }
78
+ }
@@ -221,7 +221,13 @@ async function addLint(tree, options) {
221
221
  files: ['*.json'],
222
222
  parser: 'jsonc-eslint-parser',
223
223
  rules: {
224
- '@nx/dependency-checks': 'error',
224
+ '@nx/dependency-checks': [
225
+ 'error',
226
+ {
227
+ // With flat configs, we don't want to include imports in the eslint js/cjs/mjs files to be checked
228
+ ignoredFiles: ['{projectRoot}/eslint.config.{js,cjs,mjs}'],
229
+ },
230
+ ],
225
231
  },
226
232
  });
227
233
  }
@@ -244,21 +250,18 @@ async function addLint(tree, options) {
244
250
  ruleOptions = {};
245
251
  }
246
252
  if (options.bundler === 'vite' || options.unitTestRunner === 'vitest') {
247
- ruleOptions.ignoredFiles = [
248
- '{projectRoot}/vite.config.{js,ts,mjs,mts}',
249
- ];
253
+ ruleOptions.ignoredFiles ??= [];
254
+ ruleOptions.ignoredFiles.push('{projectRoot}/vite.config.{js,ts,mjs,mts}');
250
255
  o.rules['@nx/dependency-checks'] = [ruleSeverity, ruleOptions];
251
256
  }
252
257
  else if (options.bundler === 'rollup') {
253
- ruleOptions.ignoredFiles = [
254
- '{projectRoot}/rollup.config.{js,ts,mjs,mts}',
255
- ];
258
+ ruleOptions.ignoredFiles ??= [];
259
+ ruleOptions.ignoredFiles.push('{projectRoot}/rollup.config.{js,ts,mjs,mts}');
256
260
  o.rules['@nx/dependency-checks'] = [ruleSeverity, ruleOptions];
257
261
  }
258
262
  else if (options.bundler === 'esbuild') {
259
- ruleOptions.ignoredFiles = [
260
- '{projectRoot}/esbuild.config.{js,ts,mjs,mts}',
261
- ];
263
+ ruleOptions.ignoredFiles ??= [];
264
+ ruleOptions.ignoredFiles.push('{projectRoot}/esbuild.config.{js,ts,mjs,mts}');
262
265
  o.rules['@nx/dependency-checks'] = [ruleSeverity, ruleOptions];
263
266
  }
264
267
  return o;