@nx/cypress 0.0.0-pr-28808-eac89e6 → 0.0.0-pr-29114-41d0324

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": "0.0.0-pr-28808-eac89e6",
3
+ "version": "0.0.0-pr-29114-41d0324",
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": "0.0.0-pr-28808-eac89e6",
40
- "@nx/eslint": "0.0.0-pr-28808-eac89e6",
41
- "@nx/js": "0.0.0-pr-28808-eac89e6",
39
+ "@nx/devkit": "0.0.0-pr-29114-41d0324",
40
+ "@nx/eslint": "0.0.0-pr-29114-41d0324",
41
+ "@nx/js": "0.0.0-pr-29114-41d0324",
42
42
  "@phenomnomnominal/tsquery": "~5.0.1",
43
43
  "detect-port": "^1.5.1",
44
44
  "tslib": "^2.3.0"
@@ -16,6 +16,5 @@
16
16
  "<%= offsetFromProjectRoot %>**/*.cy.js",
17
17
  <%_ if (jsx) { _%>"<%= offsetFromProjectRoot %>**/*.cy.jsx",<%_ } _%>
18
18
  "<%= offsetFromProjectRoot %>**/*.d.ts"
19
- ],
20
- "exclude": ["dist"<% if (linter === 'eslint') { %>, "eslint.config.js"<% } %>]
19
+ ]
21
20
  }
@@ -43,20 +43,6 @@ async function configurationGeneratorInternal(tree, options) {
43
43
  if (!hasPlugin) {
44
44
  addTarget(tree, opts, projectGraph);
45
45
  }
46
- const projectTsConfigPath = (0, devkit_1.joinPathFragments)(opts.projectRoot, 'tsconfig.json');
47
- if (tree.exists(projectTsConfigPath)) {
48
- (0, devkit_1.updateJson)(tree, projectTsConfigPath, (json) => {
49
- // Cypress uses commonjs, unless the project is also using commonjs (or does not set "module" i.e. uses default of commonjs),
50
- // then we need to set the moduleResolution to node10 or else Cypress will fail with TS5095 error.
51
- // See: https://github.com/cypress-io/cypress/issues/27731
52
- if ((json.compilerOptions?.module ||
53
- json.compilerOptions?.module !== 'commonjs') &&
54
- json.compilerOptions?.moduleResolution) {
55
- json.compilerOptions.moduleResolution = 'node10';
56
- }
57
- return json;
58
- });
59
- }
60
46
  const { root: projectRoot } = (0, devkit_1.readProjectConfiguration)(tree, options.project);
61
47
  const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree);
62
48
  if (isTsSolutionSetup) {
@@ -125,7 +111,6 @@ In this case you need to provide a devServerTarget,'<projectName>:<targetName>[:
125
111
  return {
126
112
  ...options,
127
113
  bundler: options.bundler ?? 'webpack',
128
- projectRoot: projectConfig.root,
129
114
  rootProject: options.rootProject ?? projectConfig.root === '.',
130
115
  linter,
131
116
  devServerTarget,
@@ -268,9 +253,6 @@ function createPackageJson(tree, options) {
268
253
  name: importPath,
269
254
  version: '0.0.1',
270
255
  private: true,
271
- nx: {
272
- name: options.project,
273
- },
274
256
  };
275
257
  (0, devkit_1.writeJson)(tree, packageJsonPath, packageJson);
276
258
  }