@nx/cypress 20.1.0 → 20.2.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/cypress",
3
- "version": "20.1.0",
3
+ "version": "20.2.0-beta.1",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
6
6
  "repository": {
@@ -36,9 +36,9 @@
36
36
  "migrations": "./migrations.json"
37
37
  },
38
38
  "dependencies": {
39
- "@nx/devkit": "20.1.0",
40
- "@nx/eslint": "20.1.0",
41
- "@nx/js": "20.1.0",
39
+ "@nx/devkit": "20.2.0-beta.1",
40
+ "@nx/eslint": "20.2.0-beta.1",
41
+ "@nx/js": "20.2.0-beta.1",
42
42
  "@phenomnomnominal/tsquery": "~5.0.1",
43
43
  "detect-port": "^1.5.1",
44
44
  "tslib": "^2.3.0"
@@ -4,8 +4,8 @@ exports.configurationGenerator = configurationGenerator;
4
4
  exports.configurationGeneratorInternal = configurationGeneratorInternal;
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
7
- const prompt_1 = require("@nx/devkit/src/generators/prompt");
8
7
  const js_1 = require("@nx/js");
8
+ const generator_prompts_1 = require("@nx/js/src/utils/generator-prompts");
9
9
  const package_manager_workspaces_1 = require("@nx/js/src/utils/package-manager-workspaces");
10
10
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
11
11
  const path_1 = require("path");
@@ -86,21 +86,7 @@ function ensureDependencies(tree, options) {
86
86
  return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies);
87
87
  }
88
88
  async function normalizeOptions(tree, options) {
89
- const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree);
90
- let linter = options.linter;
91
- if (!linter) {
92
- const choices = isTsSolutionSetup
93
- ? [{ name: 'none' }, { name: 'eslint' }]
94
- : [{ name: 'eslint' }, { name: 'none' }];
95
- const defaultValue = isTsSolutionSetup ? 'none' : 'eslint';
96
- linter = await (0, prompt_1.promptWhenInteractive)({
97
- type: 'select',
98
- name: 'linter',
99
- message: `Which linter would you like to use?`,
100
- choices,
101
- initial: 0,
102
- }, { linter: defaultValue }).then(({ linter }) => linter);
103
- }
89
+ const linter = await (0, generator_prompts_1.normalizeLinterOption)(tree, options.linter);
104
90
  const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
105
91
  if (projectConfig?.targets?.e2e) {
106
92
  throw new Error(`Project ${options.project} already has an e2e target.