@nx/node 21.0.0-beta.10 → 21.0.0-beta.12

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/node",
3
- "version": "21.0.0-beta.10",
3
+ "version": "21.0.0-beta.12",
4
4
  "private": false,
5
5
  "description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
6
6
  "repository": {
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "tslib": "^2.3.0",
35
- "@nx/devkit": "21.0.0-beta.10",
36
- "@nx/jest": "21.0.0-beta.10",
37
- "@nx/js": "21.0.0-beta.10",
38
- "@nx/eslint": "21.0.0-beta.10",
35
+ "@nx/devkit": "21.0.0-beta.12",
36
+ "@nx/jest": "21.0.0-beta.12",
37
+ "@nx/js": "21.0.0-beta.12",
38
+ "@nx/eslint": "21.0.0-beta.12",
39
39
  "tcp-port-used": "^1.0.2",
40
40
  "kill-port": "^1.6.1"
41
41
  },
@@ -388,7 +388,7 @@ async function applicationGeneratorInternal(tree, schema) {
388
388
  await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
389
389
  }
390
390
  updateTsConfigOptions(tree, options);
391
- if (options.linter === eslint_1.Linter.EsLint) {
391
+ if (options.linter === 'eslint') {
392
392
  const lintTask = await addLintingToApplication(tree, options);
393
393
  tasks.push(lintTask);
394
394
  }
@@ -491,7 +491,7 @@ async function normalizeOptions(host, options) {
491
491
  appProjectRoot,
492
492
  importPath,
493
493
  parsedTags,
494
- linter: options.linter ?? eslint_1.Linter.EsLint,
494
+ linter: options.linter ?? 'eslint',
495
495
  unitTestRunner: options.unitTestRunner ?? 'jest',
496
496
  rootProject: options.rootProject ?? false,
497
497
  port: options.port ?? 3000,
@@ -157,10 +157,10 @@ async function e2eProjectGeneratorInternal(host, _options) {
157
157
  // axios is more than likely used in the application code, so install it as a regular dependency.
158
158
  const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, { axios: versions_1.axiosVersion }, {});
159
159
  tasks.push(installTask);
160
- if (options.linter === eslint_1.Linter.EsLint) {
160
+ if (options.linter === 'eslint') {
161
161
  const linterTask = await (0, eslint_1.lintProjectGenerator)(host, {
162
162
  project: options.e2eProjectName,
163
- linter: eslint_1.Linter.EsLint,
163
+ linter: 'eslint',
164
164
  skipFormat: true,
165
165
  tsConfigPaths: [
166
166
  (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'tsconfig.json'),