@nx/playwright 20.1.0 → 20.2.0-canary.20241113-cda7f26

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "20.1.0",
3
+ "version": "20.2.0-canary.20241113-cda7f26",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@phenomnomnominal/tsquery": "~5.0.1",
38
- "@nx/devkit": "20.1.0",
39
- "@nx/eslint": "20.1.0",
40
- "@nx/webpack": "20.1.0",
41
- "@nx/vite": "20.1.0",
42
- "@nx/js": "20.1.0",
38
+ "@nx/devkit": "20.2.0-canary.20241113-cda7f26",
39
+ "@nx/eslint": "20.2.0-canary.20241113-cda7f26",
40
+ "@nx/webpack": "20.2.0-canary.20241113-cda7f26",
41
+ "@nx/vite": "20.2.0-canary.20241113-cda7f26",
42
+ "@nx/js": "20.2.0-canary.20241113-cda7f26",
43
43
  "tslib": "^2.3.0",
44
44
  "minimatch": "9.0.3"
45
45
  },
@@ -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 ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
11
11
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
@@ -133,26 +133,7 @@ async function normalizeOptions(tree, options) {
133
133
  const addPlugin = options.addPlugin ??
134
134
  (process.env.NX_ADD_PLUGINS !== 'false' &&
135
135
  nxJson.useInferencePlugins !== false);
136
- const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree);
137
- let linter = options.linter;
138
- if (isTsSolutionSetup) {
139
- linter ??= await (0, prompt_1.promptWhenInteractive)({
140
- type: 'autocomplete',
141
- name: 'linter',
142
- message: `Which linter would you like to use?`,
143
- choices: [{ name: 'none' }, { name: 'eslint' }],
144
- initial: 0,
145
- }, { linter: 'none' }).then(({ linter }) => linter);
146
- }
147
- else {
148
- linter ??= await (0, prompt_1.promptWhenInteractive)({
149
- type: 'autocomplete',
150
- name: 'linter',
151
- message: `Which linter would you like to use?`,
152
- choices: [{ name: 'eslint' }, { name: 'none' }],
153
- initial: 0,
154
- }, { linter: 'eslint' }).then(({ linter }) => linter);
155
- }
136
+ const linter = await (0, generator_prompts_1.normalizeLinterOption)(tree, options.linter);
156
137
  return {
157
138
  ...options,
158
139
  addPlugin,