@nx/cypress 23.0.0-beta.2 → 23.0.0-beta.21

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.
Files changed (147) hide show
  1. package/{index.d.ts → dist/index.d.ts} +0 -1
  2. package/dist/internal.d.ts +5 -0
  3. package/dist/internal.js +12 -0
  4. package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
  5. package/{plugins → dist/plugins}/cypress-preset.d.ts +0 -1
  6. package/{plugins → dist/plugins}/cypress-preset.js +15 -5
  7. package/{src → dist/src}/executors/cypress/cypress.impl.d.ts +0 -1
  8. package/{src → dist/src}/executors/cypress/cypress.impl.js +2 -0
  9. package/{src → dist/src}/executors/cypress/schema.json +1 -0
  10. package/{src → dist/src}/generators/base-setup/base-setup.d.ts +0 -1
  11. package/{src → dist/src}/generators/base-setup/base-setup.js +5 -19
  12. package/dist/src/generators/base-setup/files/config-ts-cjs/cypress.config.ts__ext__ +3 -0
  13. package/dist/src/generators/base-setup/files/config-ts-esm/__directory__/support/commands.ts__ext__ +35 -0
  14. package/{src → dist/src}/generators/component-configuration/component-configuration.d.ts +0 -1
  15. package/{src → dist/src}/generators/component-configuration/component-configuration.js +25 -22
  16. package/{src → dist/src}/generators/configuration/configuration.d.ts +0 -1
  17. package/{src → dist/src}/generators/configuration/configuration.js +12 -11
  18. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
  19. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +7 -6
  20. package/{src → dist/src}/generators/convert-to-inferred/lib/add-dev-server-target-to-config.d.ts +0 -1
  21. package/{src → dist/src}/generators/convert-to-inferred/lib/add-exclude-spec-pattern.d.ts +0 -1
  22. package/{src → dist/src}/generators/convert-to-inferred/lib/target-options-map.d.ts +0 -1
  23. package/{src → dist/src}/generators/convert-to-inferred/lib/upsert-baseUrl.d.ts +0 -1
  24. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  25. package/{src → dist/src}/generators/init/init.js +24 -11
  26. package/{src → dist/src}/generators/init/schema.json +1 -1
  27. package/{src → dist/src}/generators/migrate-to-cypress-11/conversion.util.d.ts +0 -1
  28. package/{src → dist/src}/generators/migrate-to-cypress-11/conversion.util.js +5 -6
  29. package/{src → dist/src}/generators/migrate-to-cypress-11/migrate-to-cypress-11.d.ts +0 -1
  30. package/{src → dist/src}/generators/migrate-to-cypress-11/migrate-to-cypress-11.js +3 -3
  31. package/{src → dist/src}/migrations/update-20-8-0/remove-experimental-fetch-polyfill.d.ts +0 -1
  32. package/{src → dist/src}/migrations/update-20-8-0/remove-experimental-fetch-polyfill.js +2 -2
  33. package/{src → dist/src}/migrations/update-20-8-0/replace-experimental-just-in-time-compile.d.ts +0 -1
  34. package/{src → dist/src}/migrations/update-20-8-0/replace-experimental-just-in-time-compile.js +4 -4
  35. package/{src → dist/src}/migrations/update-20-8-0/set-inject-document-domain.d.ts +0 -1
  36. package/{src → dist/src}/migrations/update-20-8-0/set-inject-document-domain.js +2 -2
  37. package/{src → dist/src}/migrations/update-20-8-0/update-component-testing-mount-imports.d.ts +0 -1
  38. package/{src → dist/src}/migrations/update-20-8-0/update-component-testing-mount-imports.js +2 -2
  39. package/dist/src/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor.d.ts +2 -0
  40. package/{src → dist/src}/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor.js +29 -17
  41. package/{src → dist/src}/migrations/update-22-1-0/rename-cy-exec-code-property.d.ts +0 -1
  42. package/{src → dist/src}/migrations/update-22-1-0/rename-cy-exec-code-property.js +4 -4
  43. package/{src → dist/src}/migrations/update-22-1-0/update-angular-component-testing-support.d.ts +0 -1
  44. package/{src → dist/src}/migrations/update-22-1-0/update-angular-component-testing-support.js +4 -4
  45. package/{src → dist/src}/migrations/update-22-1-0/update-selector-playground-api.d.ts +0 -1
  46. package/{src → dist/src}/migrations/update-22-1-0/update-selector-playground-api.js +3 -3
  47. package/dist/src/migrations/update-23-0-0/remove-experimental-prompt-command.d.ts +2 -0
  48. package/dist/src/migrations/update-23-0-0/remove-experimental-prompt-command.js +47 -0
  49. package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.d.ts +3 -0
  50. package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.js +199 -0
  51. package/{src → dist/src}/plugins/plugin.d.ts +0 -1
  52. package/{src → dist/src}/plugins/plugin.js +88 -40
  53. package/{src → dist/src}/plugins/preprocessor-vite.d.ts +0 -1
  54. package/{src → dist/src}/utils/add-linter.d.ts +0 -1
  55. package/{src → dist/src}/utils/add-linter.js +16 -18
  56. package/dist/src/utils/assert-supported-cypress-version.d.ts +2 -0
  57. package/dist/src/utils/assert-supported-cypress-version.js +8 -0
  58. package/{src → dist/src}/utils/config.d.ts +10 -5
  59. package/{src → dist/src}/utils/config.js +52 -48
  60. package/{src → dist/src}/utils/constants.d.ts +0 -1
  61. package/{src → dist/src}/utils/ct-helpers.d.ts +0 -1
  62. package/dist/src/utils/deprecation.d.ts +3 -0
  63. package/dist/src/utils/deprecation.js +20 -0
  64. package/{src → dist/src}/utils/find-target-options.d.ts +0 -1
  65. package/{src → dist/src}/utils/migrations.d.ts +0 -1
  66. package/{src → dist/src}/utils/migrations.js +4 -4
  67. package/{src → dist/src}/utils/project-name.d.ts +0 -1
  68. package/{src → dist/src}/utils/start-dev-server.d.ts +0 -1
  69. package/{src → dist/src}/utils/versions.d.ts +5 -5
  70. package/{src → dist/src}/utils/versions.js +14 -51
  71. package/executors.json +2 -2
  72. package/generators.json +10 -10
  73. package/migrations.json +45 -8
  74. package/package.json +59 -12
  75. package/index.d.ts.map +0 -1
  76. package/plugin.d.ts.map +0 -1
  77. package/plugins/cypress-preset.d.ts.map +0 -1
  78. package/src/executors/cypress/cypress.impl.d.ts.map +0 -1
  79. package/src/generators/base-setup/base-setup.d.ts.map +0 -1
  80. package/src/generators/component-configuration/component-configuration.d.ts.map +0 -1
  81. package/src/generators/configuration/configuration.d.ts.map +0 -1
  82. package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
  83. package/src/generators/convert-to-inferred/lib/add-dev-server-target-to-config.d.ts.map +0 -1
  84. package/src/generators/convert-to-inferred/lib/add-exclude-spec-pattern.d.ts.map +0 -1
  85. package/src/generators/convert-to-inferred/lib/target-options-map.d.ts.map +0 -1
  86. package/src/generators/convert-to-inferred/lib/upsert-baseUrl.d.ts.map +0 -1
  87. package/src/generators/init/init.d.ts.map +0 -1
  88. package/src/generators/migrate-to-cypress-11/conversion.util.d.ts.map +0 -1
  89. package/src/generators/migrate-to-cypress-11/migrate-to-cypress-11.d.ts.map +0 -1
  90. package/src/migrations/update-20-8-0/remove-experimental-fetch-polyfill.d.ts.map +0 -1
  91. package/src/migrations/update-20-8-0/replace-experimental-just-in-time-compile.d.ts.map +0 -1
  92. package/src/migrations/update-20-8-0/set-inject-document-domain.d.ts.map +0 -1
  93. package/src/migrations/update-20-8-0/update-component-testing-mount-imports.d.ts.map +0 -1
  94. package/src/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor.d.ts +0 -3
  95. package/src/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor.d.ts.map +0 -1
  96. package/src/migrations/update-22-1-0/rename-cy-exec-code-property.d.ts.map +0 -1
  97. package/src/migrations/update-22-1-0/update-angular-component-testing-support.d.ts.map +0 -1
  98. package/src/migrations/update-22-1-0/update-selector-playground-api.d.ts.map +0 -1
  99. package/src/plugins/plugin.d.ts.map +0 -1
  100. package/src/plugins/preprocessor-vite.d.ts.map +0 -1
  101. package/src/utils/add-linter.d.ts.map +0 -1
  102. package/src/utils/config.d.ts.map +0 -1
  103. package/src/utils/constants.d.ts.map +0 -1
  104. package/src/utils/ct-helpers.d.ts.map +0 -1
  105. package/src/utils/cypress-version.d.ts +0 -12
  106. package/src/utils/cypress-version.d.ts.map +0 -1
  107. package/src/utils/cypress-version.js +0 -38
  108. package/src/utils/find-target-options.d.ts.map +0 -1
  109. package/src/utils/migrations.d.ts.map +0 -1
  110. package/src/utils/project-name.d.ts.map +0 -1
  111. package/src/utils/start-dev-server.d.ts.map +0 -1
  112. package/src/utils/versions.d.ts.map +0 -1
  113. /package/{LICENSE → dist/LICENSE} +0 -0
  114. /package/{PLUGIN.md → dist/PLUGIN.md} +0 -0
  115. /package/{index.js → dist/index.js} +0 -0
  116. /package/{plugin.js → dist/plugin.js} +0 -0
  117. /package/{src → dist/src}/generators/base-setup/files/common/__directory__/fixtures/example.json +0 -0
  118. /package/{src → dist/src}/generators/base-setup/files/common/__directory__/support/commands.ts__ext__ +0 -0
  119. /package/{src → dist/src}/generators/base-setup/files/config-js-cjs/__directory__/support/commands.js__ext__ +0 -0
  120. /package/{src → dist/src}/generators/base-setup/files/config-js-cjs/cypress.config.js__ext__ +0 -0
  121. /package/{src → dist/src}/generators/base-setup/files/config-js-esm/__directory__/support/commands.js__ext__ +0 -0
  122. /package/{src → dist/src}/generators/base-setup/files/config-js-esm/cypress.config.js__ext__ +0 -0
  123. /package/{src/generators/base-setup/files/config-ts → dist/src/generators/base-setup/files/config-ts-cjs}/__directory__/support/commands.ts__ext__ +0 -0
  124. /package/{src/generators/base-setup/files/config-ts → dist/src/generators/base-setup/files/config-ts-esm}/cypress.config.ts__ext__ +0 -0
  125. /package/{src → dist/src}/generators/base-setup/files/tsconfig/non-ts-solution/__directory__/tsconfig.json__ext__ +0 -0
  126. /package/{src → dist/src}/generators/base-setup/files/tsconfig/ts-solution/__directory__/tsconfig.json__ext__ +0 -0
  127. /package/{src → dist/src}/generators/component-configuration/files/__directory__/support/component-index.html +0 -0
  128. /package/{src → dist/src}/generators/component-configuration/files/__directory__/support/component.ts__ext__ +0 -0
  129. /package/{src → dist/src}/generators/component-configuration/schema.d.ts +0 -0
  130. /package/{src → dist/src}/generators/component-configuration/schema.json +0 -0
  131. /package/{src → dist/src}/generators/configuration/files/__directory__/e2e/app.cy.ts__tmpl__ +0 -0
  132. /package/{src → dist/src}/generators/configuration/files/__directory__/support/app.po.ts__tmpl__ +0 -0
  133. /package/{src → dist/src}/generators/configuration/files/__directory__/support/e2e.ts__tmpl__ +0 -0
  134. /package/{src → dist/src}/generators/configuration/schema.json +0 -0
  135. /package/{src → dist/src}/generators/convert-to-inferred/lib/add-dev-server-target-to-config.js +0 -0
  136. /package/{src → dist/src}/generators/convert-to-inferred/lib/add-exclude-spec-pattern.js +0 -0
  137. /package/{src → dist/src}/generators/convert-to-inferred/lib/target-options-map.js +0 -0
  138. /package/{src → dist/src}/generators/convert-to-inferred/lib/upsert-baseUrl.js +0 -0
  139. /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
  140. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  141. /package/{src → dist/src}/generators/migrate-to-cypress-11/schema.json +0 -0
  142. /package/{src → dist/src}/plugins/preprocessor-vite.js +0 -0
  143. /package/{src → dist/src}/utils/constants.js +0 -0
  144. /package/{src → dist/src}/utils/ct-helpers.js +0 -0
  145. /package/{src → dist/src}/utils/find-target-options.js +0 -0
  146. /package/{src → dist/src}/utils/project-name.js +0 -0
  147. /package/{src → dist/src}/utils/start-dev-server.js +0 -0
@@ -5,7 +5,7 @@ exports.getObjectProperty = getObjectProperty;
5
5
  exports.removeObjectProperty = removeObjectProperty;
6
6
  exports.updateObjectProperty = updateObjectProperty;
7
7
  const devkit_1 = require("@nx/devkit");
8
- const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
8
+ const internal_1 = require("@nx/js/internal");
9
9
  const path_1 = require("path");
10
10
  const config_1 = require("./config");
11
11
  let ts;
@@ -40,15 +40,15 @@ async function* cypressProjectConfigs(tree) {
40
40
  }
41
41
  }
42
42
  function getObjectProperty(config, name) {
43
- ts ??= (0, ensure_typescript_1.ensureTypescript)();
43
+ ts ??= (0, internal_1.ensureTypescript)();
44
44
  return config.properties.find((p) => ts.isPropertyAssignment(p) && p.name.getText() === name);
45
45
  }
46
46
  function removeObjectProperty(config, property) {
47
- ts ??= (0, ensure_typescript_1.ensureTypescript)();
47
+ ts ??= (0, internal_1.ensureTypescript)();
48
48
  return ts.factory.updateObjectLiteralExpression(config, config.properties.filter((p) => p !== property));
49
49
  }
50
50
  function updateObjectProperty(config, property, { newName, newValue }) {
51
- ts ??= (0, ensure_typescript_1.ensureTypescript)();
51
+ ts ??= (0, internal_1.ensureTypescript)();
52
52
  if (!newName && !newValue) {
53
53
  throw new Error('newName or newValue must be provided');
54
54
  }
@@ -1,4 +1,3 @@
1
1
  export declare function getUnscopedLibName(libRoot: string): string;
2
2
  export declare function getE2eProjectName(targetProjectName: string, targetLibRoot: string, cypressDirectory?: string): string;
3
3
  export declare function filePathPrefix(directory: string): string;
4
- //# sourceMappingURL=project-name.d.ts.map
@@ -7,4 +7,3 @@ export declare function startDevServer(opts: Omit<CypressExecutorOptions, 'cypre
7
7
  baseUrl: any;
8
8
  portLockFilePath: string;
9
9
  }, void, unknown>;
10
- //# sourceMappingURL=start-dev-server.d.ts.map
@@ -1,15 +1,15 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare const nxVersion: any;
3
+ export declare const minSupportedCypressVersion = "13.0.0";
3
4
  export declare const eslintPluginCypressVersion = "^3.5.0";
4
- export declare const typesNodeVersion = "20.19.9";
5
- export declare const cypressViteDevServerVersion = "^7.0.1";
6
- export declare const cypressVersion = "^15.8.0";
5
+ export declare const typesNodeVersion = "^22.0.0";
6
+ export declare const cypressViteDevServerVersion = "^7.3.1";
7
+ export declare const cypressVersion = "^15.14.2";
7
8
  export declare const cypressWebpackVersion = "^5.4.1";
8
9
  export declare const viteVersion = "^6.0.0";
9
10
  export declare const htmlWebpackPluginVersion = "^5.5.0";
10
- export type CypressVersions = Record<keyof Omit<typeof import('./versions'), 'nxVersion' | 'versions' | 'getInstalledCypressVersion' | 'getInstalledCypressMajorVersion' | 'assertMinimumCypressVersion'>, string>;
11
+ export type CypressVersions = Record<keyof Omit<typeof import('./versions'), 'nxVersion' | 'minSupportedCypressVersion' | 'versions' | 'getInstalledCypressVersion' | 'getInstalledCypressMajorVersion' | 'assertMinimumCypressVersion'>, string>;
11
12
  export declare function versions(tree: Tree): CypressVersions;
12
13
  export declare function getInstalledCypressVersion(tree?: Tree): string | null;
13
14
  export declare function getInstalledCypressMajorVersion(tree?: Tree): number | null;
14
15
  export declare function assertMinimumCypressVersion(minVersion: number, tree?: Tree): void;
15
- //# sourceMappingURL=versions.d.ts.map
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.htmlWebpackPluginVersion = exports.viteVersion = exports.cypressWebpackVersion = exports.cypressVersion = exports.cypressViteDevServerVersion = exports.typesNodeVersion = exports.eslintPluginCypressVersion = exports.nxVersion = void 0;
3
+ exports.htmlWebpackPluginVersion = exports.viteVersion = exports.cypressWebpackVersion = exports.cypressVersion = exports.cypressViteDevServerVersion = exports.typesNodeVersion = exports.eslintPluginCypressVersion = exports.minSupportedCypressVersion = exports.nxVersion = void 0;
4
4
  exports.versions = versions;
5
5
  exports.getInstalledCypressVersion = getInstalledCypressVersion;
6
6
  exports.getInstalledCypressMajorVersion = getInstalledCypressMajorVersion;
7
7
  exports.assertMinimumCypressVersion = assertMinimumCypressVersion;
8
- const devkit_1 = require("@nx/devkit");
8
+ const internal_1 = require("@nx/devkit/internal");
9
+ const path_1 = require("path");
9
10
  const semver_1 = require("semver");
10
- exports.nxVersion = require('../../package.json').version;
11
+ exports.nxVersion = require((0, path_1.join)('@nx/cypress', 'package.json')).version;
12
+ exports.minSupportedCypressVersion = '13.0.0';
11
13
  exports.eslintPluginCypressVersion = '^3.5.0';
12
- exports.typesNodeVersion = '20.19.9';
13
- exports.cypressViteDevServerVersion = '^7.0.1';
14
- exports.cypressVersion = '^15.8.0';
14
+ exports.typesNodeVersion = '^22.0.0';
15
+ exports.cypressViteDevServerVersion = '^7.3.1';
16
+ exports.cypressVersion = '^15.14.2';
15
17
  exports.cypressWebpackVersion = '^5.4.1';
16
18
  exports.viteVersion = '^6.0.0';
17
19
  exports.htmlWebpackPluginVersion = '^5.5.0';
@@ -27,7 +29,7 @@ const latestVersions = {
27
29
  const versionMap = {
28
30
  13: {
29
31
  eslintPluginCypressVersion: '^3.5.0',
30
- typesNodeVersion: '20.19.9',
32
+ typesNodeVersion: '^22.0.0',
31
33
  cypressViteDevServerVersion: '^2.2.1',
32
34
  cypressVersion: '^13.13.0',
33
35
  cypressWebpackVersion: '^3.8.0',
@@ -36,7 +38,7 @@ const versionMap = {
36
38
  },
37
39
  14: {
38
40
  eslintPluginCypressVersion: '^3.5.0',
39
- typesNodeVersion: '20.19.9',
41
+ typesNodeVersion: '^22.0.0',
40
42
  cypressViteDevServerVersion: '^6.0.3',
41
43
  cypressVersion: '^14.2.1',
42
44
  cypressWebpackVersion: '^4.0.2',
@@ -50,31 +52,13 @@ function versions(tree) {
50
52
  return latestVersions;
51
53
  }
52
54
  const cypressMajorVersion = (0, semver_1.major)(installedCypressVersion);
53
- switch (cypressMajorVersion) {
54
- case 15:
55
- return latestVersions;
56
- case 14:
57
- return versionMap[14];
58
- case 13:
59
- return versionMap[13];
60
- default:
61
- throw new Error(`You're currently using an unsupported Cypress version: ${installedCypressVersion}. Supported versions are v13, v14, and v15.`);
62
- }
55
+ return versionMap[cypressMajorVersion] ?? latestVersions;
63
56
  }
64
57
  function getInstalledCypressVersion(tree) {
65
- try {
66
- let version;
67
- if (tree) {
68
- version = getCypressVersionFromTree(tree);
69
- }
70
- else {
71
- version = getCypressVersionFromFileSystem();
72
- }
73
- return version;
74
- }
75
- catch {
76
- return null;
58
+ if (!tree) {
59
+ return (0, internal_1.getInstalledPackageVersion)('cypress');
77
60
  }
61
+ return (0, internal_1.getDeclaredPackageVersion)(tree, 'cypress');
78
62
  }
79
63
  function getInstalledCypressMajorVersion(tree) {
80
64
  const installedCypressVersion = getInstalledCypressVersion(tree);
@@ -86,24 +70,3 @@ function assertMinimumCypressVersion(minVersion, tree) {
86
70
  throw new Error(`Cypress version of ${minVersion} or higher is not installed. Expected Cypress v${minVersion}+, found Cypress v${version} instead.`);
87
71
  }
88
72
  }
89
- function getCypressVersionFromTree(tree) {
90
- const installedVersion = (0, devkit_1.getDependencyVersionFromPackageJson)(tree, 'cypress');
91
- if (!installedVersion) {
92
- return null;
93
- }
94
- if (installedVersion === 'latest' || installedVersion === 'next') {
95
- return (0, semver_1.clean)(exports.cypressVersion) ?? (0, semver_1.coerce)(exports.cypressVersion)?.version;
96
- }
97
- return (0, semver_1.clean)(installedVersion) ?? (0, semver_1.coerce)(installedVersion)?.version;
98
- }
99
- function getCypressVersionFromFileSystem() {
100
- let packageJson;
101
- try {
102
- packageJson = require('cypress/package.json');
103
- }
104
- catch { }
105
- if (!packageJson) {
106
- return null;
107
- }
108
- return packageJson.version;
109
- }
package/executors.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "executors": {
3
3
  "cypress": {
4
- "implementation": "./src/executors/cypress/cypress.impl",
5
- "schema": "./src/executors/cypress/schema.json",
4
+ "implementation": "./dist/src/executors/cypress/cypress.impl",
5
+ "schema": "./dist/src/executors/cypress/schema.json",
6
6
  "description": "Run Cypress E2E tests."
7
7
  }
8
8
  }
package/generators.json CHANGED
@@ -3,33 +3,33 @@
3
3
  "version": "0.1",
4
4
  "generators": {
5
5
  "init": {
6
- "factory": "./src/generators/init/init#cypressInitGeneratorInternal",
7
- "schema": "./src/generators/init/schema.json",
6
+ "factory": "./dist/src/generators/init/init#cypressInitGeneratorInternal",
7
+ "schema": "./dist/src/generators/init/schema.json",
8
8
  "description": "Initialize the `@nx/cypress` plugin.",
9
9
  "aliases": ["ng-add"],
10
10
  "hidden": true
11
11
  },
12
12
  "configuration": {
13
13
  "aliases": ["cypress-e2e-configuration", "e2e", "e2e-config"],
14
- "factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
15
- "schema": "./src/generators/configuration/schema.json",
14
+ "factory": "./dist/src/generators/configuration/configuration#configurationGeneratorInternal",
15
+ "schema": "./dist/src/generators/configuration/schema.json",
16
16
  "description": "Add a Cypress E2E Configuration to an existing project."
17
17
  },
18
18
  "component-configuration": {
19
19
  "aliases": ["cypress-component-configuration"],
20
- "factory": "./src/generators/component-configuration/component-configuration#componentConfigurationGeneratorInternal",
21
- "schema": "./src/generators/component-configuration/schema.json",
20
+ "factory": "./dist/src/generators/component-configuration/component-configuration#componentConfigurationGeneratorInternal",
21
+ "schema": "./dist/src/generators/component-configuration/schema.json",
22
22
  "description": "Set up Cypress Component Test for a project",
23
23
  "hidden": true
24
24
  },
25
25
  "migrate-to-cypress-11": {
26
- "factory": "./src/generators/migrate-to-cypress-11/migrate-to-cypress-11#migrateCypressProject",
27
- "schema": "./src/generators/migrate-to-cypress-11/schema.json",
26
+ "factory": "./dist/src/generators/migrate-to-cypress-11/migrate-to-cypress-11#migrateCypressProject",
27
+ "schema": "./dist/src/generators/migrate-to-cypress-11/schema.json",
28
28
  "description": "Migrate existing Cypress e2e projects to Cypress v11"
29
29
  },
30
30
  "convert-to-inferred": {
31
- "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
32
- "schema": "./src/generators/convert-to-inferred/schema.json",
31
+ "factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred",
32
+ "schema": "./dist/src/generators/convert-to-inferred/schema.json",
33
33
  "description": "Convert existing Cypress project(s) using `@nx/cypress:cypress` executor to use `@nx/cypress/plugin`."
34
34
  }
35
35
  }
package/migrations.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "cypress": ">=14.0.0"
8
8
  },
9
9
  "description": "Replaces the `experimentalSkipDomainInjection` configuration option with the new `injectDocumentDomain` configuration option.",
10
- "implementation": "./src/migrations/update-20-8-0/set-inject-document-domain"
10
+ "implementation": "./dist/src/migrations/update-20-8-0/set-inject-document-domain"
11
11
  },
12
12
  "remove-experimental-fetch-polyfill": {
13
13
  "cli": "nx",
@@ -16,7 +16,7 @@
16
16
  "cypress": ">=14.0.0"
17
17
  },
18
18
  "description": "Removes the `experimentalFetchPolyfill` configuration option.",
19
- "implementation": "./src/migrations/update-20-8-0/remove-experimental-fetch-polyfill"
19
+ "implementation": "./dist/src/migrations/update-20-8-0/remove-experimental-fetch-polyfill"
20
20
  },
21
21
  "replace-experimental-just-in-time-compile": {
22
22
  "cli": "nx",
@@ -25,7 +25,7 @@
25
25
  "cypress": ">=14.0.0"
26
26
  },
27
27
  "description": "Replaces the `experimentalJustInTimeCompile` configuration option with the new `justInTimeCompile` configuration option.",
28
- "implementation": "./src/migrations/update-20-8-0/replace-experimental-just-in-time-compile"
28
+ "implementation": "./dist/src/migrations/update-20-8-0/replace-experimental-just-in-time-compile"
29
29
  },
30
30
  "update-component-testing-mount-imports": {
31
31
  "cli": "nx",
@@ -34,12 +34,12 @@
34
34
  "cypress": ">=14.0.0"
35
35
  },
36
36
  "description": "Updates the module specifier for the Component Testing `mount` function.",
37
- "implementation": "./src/migrations/update-20-8-0/update-component-testing-mount-imports"
37
+ "implementation": "./dist/src/migrations/update-20-8-0/update-component-testing-mount-imports"
38
38
  },
39
39
  "remove-tsconfig-and-copy-files-options-from-cypress-executor": {
40
40
  "version": "21.0.0-beta.10",
41
41
  "description": "Removes the `tsConfig` and `copyFiles` options from the `@nx/cypress:cypress` executor.",
42
- "implementation": "./src/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor"
42
+ "implementation": "./dist/src/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor"
43
43
  },
44
44
  "rename-cy-exec-code-property": {
45
45
  "version": "22.1.0-beta.6",
@@ -47,7 +47,7 @@
47
47
  "cypress": ">=15.0.0"
48
48
  },
49
49
  "description": "Renames `cy.exec().its('code')` usages to the new `exitCode` property introduced in Cypress v15.",
50
- "implementation": "./src/migrations/update-22-1-0/rename-cy-exec-code-property"
50
+ "implementation": "./dist/src/migrations/update-22-1-0/rename-cy-exec-code-property"
51
51
  },
52
52
  "update-selector-playground-api": {
53
53
  "version": "22.1.0-beta.6",
@@ -55,7 +55,7 @@
55
55
  "cypress": ">=15.0.0"
56
56
  },
57
57
  "description": "Updates the deprecated `Cypress.SelectorPlayground` API to `Cypress.ElementSelector` and removes the unsupported `onElement` option.",
58
- "implementation": "./src/migrations/update-22-1-0/update-selector-playground-api"
58
+ "implementation": "./dist/src/migrations/update-22-1-0/update-selector-playground-api"
59
59
  },
60
60
  "update-angular-component-testing-support": {
61
61
  "version": "22.1.0-beta.6",
@@ -63,7 +63,20 @@
63
63
  "cypress": ">=15.0.0"
64
64
  },
65
65
  "description": "For Angular component testing projects below v18, switches to the fallback `@cypress/angular` harness required by Cypress v15.",
66
- "implementation": "./src/migrations/update-22-1-0/update-angular-component-testing-support"
66
+ "implementation": "./dist/src/migrations/update-22-1-0/update-angular-component-testing-support"
67
+ },
68
+ "remove-experimental-prompt-command": {
69
+ "version": "23.0.0-beta.10",
70
+ "requires": {
71
+ "cypress": ">=15.13.0"
72
+ },
73
+ "description": "Removes the `experimentalPromptCommand` flag from `cypress.config.{ts,js,mjs,cjs}`. The flag was removed in Cypress 15.13.0; `cy.prompt` is now in beta without configuration.",
74
+ "implementation": "./dist/src/migrations/update-23-0-0/remove-experimental-prompt-command"
75
+ },
76
+ "rewrite-internal-subpath-imports": {
77
+ "version": "23.0.0-beta.19",
78
+ "description": "Rewrites imports from `@nx/cypress/src/*` to either the public `@nx/cypress` entry (for re-exported symbols) or `@nx/cypress/internal` (for everything else). The `./src/*` wildcard was removed from the package's exports map.",
79
+ "implementation": "./dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports"
67
80
  }
68
81
  },
69
82
  "packageJsonUpdates": {
@@ -124,6 +137,30 @@
124
137
  "alwaysAddToPackageJson": false
125
138
  }
126
139
  }
140
+ },
141
+ "23.0.0": {
142
+ "version": "23.0.0-beta.10",
143
+ "requires": {
144
+ "cypress": ">=15.0.0 <15.14.0"
145
+ },
146
+ "packages": {
147
+ "cypress": {
148
+ "version": "^15.14.2",
149
+ "alwaysAddToPackageJson": false
150
+ }
151
+ }
152
+ },
153
+ "23.0.0-vite-dev-server": {
154
+ "version": "23.0.0-beta.10",
155
+ "requires": {
156
+ "@cypress/vite-dev-server": ">=7.0.0 <7.3.1"
157
+ },
158
+ "packages": {
159
+ "@cypress/vite-dev-server": {
160
+ "version": "^7.3.1",
161
+ "alwaysAddToPackageJson": false
162
+ }
163
+ }
127
164
  }
128
165
  }
129
166
  }
package/package.json CHANGED
@@ -1,7 +1,16 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "23.0.0-beta.2",
3
+ "version": "23.0.0-beta.21",
4
4
  "private": false,
5
+ "type": "commonjs",
6
+ "files": [
7
+ "dist",
8
+ "!dist/tsconfig.tsbuildinfo",
9
+ "!dist/spec",
10
+ "migrations.json",
11
+ "executors.json",
12
+ "generators.json"
13
+ ],
5
14
  "description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
6
15
  "repository": {
7
16
  "type": "git",
@@ -21,9 +30,47 @@
21
30
  "Front-end",
22
31
  "Testing"
23
32
  ],
24
- "main": "./index.js",
25
- "type": "commonjs",
26
- "types": "./index.d.ts",
33
+ "main": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
35
+ "typesVersions": {
36
+ "*": {
37
+ "plugin": [
38
+ "dist/plugin.d.ts"
39
+ ],
40
+ "plugins/cypress-preset": [
41
+ "dist/plugins/cypress-preset.d.ts"
42
+ ],
43
+ "internal": [
44
+ "dist/internal.d.ts"
45
+ ]
46
+ }
47
+ },
48
+ "exports": {
49
+ ".": {
50
+ "@nx/nx-source": "./index.ts",
51
+ "types": "./dist/index.d.ts",
52
+ "default": "./dist/index.js"
53
+ },
54
+ "./package.json": "./package.json",
55
+ "./migrations.json": "./migrations.json",
56
+ "./generators.json": "./generators.json",
57
+ "./executors.json": "./executors.json",
58
+ "./plugin": {
59
+ "@nx/nx-source": "./plugin.ts",
60
+ "types": "./dist/plugin.d.ts",
61
+ "default": "./dist/plugin.js"
62
+ },
63
+ "./plugins/cypress-preset": {
64
+ "@nx/nx-source": "./plugins/cypress-preset.ts",
65
+ "types": "./dist/plugins/cypress-preset.d.ts",
66
+ "default": "./dist/plugins/cypress-preset.js"
67
+ },
68
+ "./internal": {
69
+ "@nx/nx-source": "./internal.ts",
70
+ "types": "./dist/internal.d.ts",
71
+ "default": "./dist/internal.js"
72
+ }
73
+ },
27
74
  "author": "Victor Savkin",
28
75
  "license": "MIT",
29
76
  "bugs": {
@@ -37,17 +84,17 @@
37
84
  "migrations": "./migrations.json"
38
85
  },
39
86
  "dependencies": {
40
- "@nx/devkit": "23.0.0-beta.2",
41
- "@nx/eslint": "23.0.0-beta.2",
42
- "@nx/js": "23.0.0-beta.2",
43
- "@phenomnomnominal/tsquery": "~6.1.4",
44
- "detect-port": "^1.5.1",
87
+ "@phenomnomnominal/tsquery": "~6.2.0",
88
+ "detect-port": "^2.1.0",
45
89
  "semver": "^7.6.3",
46
- "tree-kill": "1.2.2",
47
- "tslib": "^2.3.0"
90
+ "tree-kill": "^1.2.2",
91
+ "tslib": "^2.3.0",
92
+ "@nx/devkit": "23.0.0-beta.21",
93
+ "@nx/eslint": "23.0.0-beta.21",
94
+ "@nx/js": "23.0.0-beta.21"
48
95
  },
49
96
  "devDependencies": {
50
- "nx": "23.0.0-beta.2"
97
+ "nx": "23.0.0-beta.21"
51
98
  },
52
99
  "peerDependencies": {
53
100
  "cypress": ">= 13 < 16"
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/cypress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,kEAAkE,CAAC;AACnH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC"}
package/plugin.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../packages/cypress/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cypress-preset.d.ts","sourceRoot":"","sources":["../../../../packages/cypress/plugins/cypress-preset.ts"],"names":[],"mappings":"AAUA,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAYxC,UAAU,iBAAiB;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CAC5B;AAID,MAAM,WAAW,+BACf,SAAQ,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC;CAAG;AAEvD,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE;IAAE,WAAW,EAAE,WAAW,GAAG,KAAK,CAAA;CAAE,GAC7C,iBAAiB,CAwBnB;AA6CD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,OAkEpC;AA0DD,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;QAII;IACJ,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,mBAAmB,CAAC,EAAE,YAAY,CAAC;CACpC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cypress.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/executors/cypress/cypress.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAQrD,MAAM,MAAM,IAAI,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAExC,MAAM,WAAW,sBAAuB,SAAQ,IAAI;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;QAGI;IACJ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5C;AAOD,wBAA8B,eAAe,CAC3C,OAAO,EAAE,sBAAsB,EAC/B,OAAO,EAAE,eAAe;;GA0BzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-setup.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/generators/base-setup/base-setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EAOL,MAAM,YAAY,CAAC;AAKpB,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB;;;SAGK;IACL,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,QAuGhC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/generators/component-configuration/component-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAIjB,oBAAoB,EAKpB,IAAI,EAIL,MAAM,YAAY,CAAC;AASpB,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAI/D,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mCAAmC,8BAM7C;AAED,wBAAsB,uCAAuC,CAC3D,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mCAAmC,8BAwD7C;AAkHD,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,oBAAoB,QAsDpC;AAOD,eAAe,+BAA+B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAWjB,IAAI,EAIL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsBhD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAC/B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,8BAMhC;AAED,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,8BA+FhC;AA+SD,eAAe,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"convert-to-inferred.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/generators/convert-to-inferred/convert-to-inferred.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAepB,UAAU,MAAM;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,iBA+BlE;AAqID,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-dev-server-target-to-config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cypress/src/generators/convert-to-inferred/lib/add-dev-server-target-to-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACzC,iBAAiB,CAAC,EAAE,MAAM,QA0H3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-exclude-spec-pattern.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cypress/src/generators/convert-to-inferred/lib/add-exclude-spec-pattern.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,kBAAkB,EAAE,MAAM,GAAG,MAAM,EAAE,QA8CtC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"target-options-map.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cypress/src/generators/convert-to-inferred/lib/target-options-map.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;CAiBjC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"upsert-baseUrl.d.ts","sourceRoot":"","sources":["../../../../../../../packages/cypress/src/generators/convert-to-inferred/lib/upsert-baseUrl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,qBAAqB,EAAE,MAAM,QA4C9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EACjB,YAAY,EAIZ,IAAI,EAEL,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA+ClC,wBAAgB,SAAS,CACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,YAAY,EACnB,oBAAoB,EAAE,OAAO,iBAmB9B;AAmBD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,8BAErE;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,8BA8BhB;AAED,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversion.util.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/generators/migrate-to-cypress-11/conversion.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EAGpB,IAAI,EAGL,MAAM,YAAY,CAAC;AAkBpB,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,oBAAoB,EACnC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb;IACD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CA4BA;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,oBAAoB,EACnC,qBAAqB,EAAE,MAAM,GAC5B;IACD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC,CAoCA;AAED,wBAAgB,uBAAuB,CACrC,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,iBAAiB,EAAE,MAAM,GACxB;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAiC1D;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,oBAAoB,EACnC,EACE,eAAe,EACf,iBAAiB,GAClB,EAAE;IACD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC,QAqGF;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,QA8BtB;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,mBAAmB,EAAE,MAAM,EAC3B,cAAc,EAAE;IACd,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC,QA+BF;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,QAkB1B;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,oBAAoB,EACnC,cAAc,EAAE;IACd,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC;qBAFkB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;uBACjB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;uBAAnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;EAmCzC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate-to-cypress-11.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/generators/migrate-to-cypress-11/migrate-to-cypress-11.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,IAAI,EAGL,MAAM,YAAY,CAAC;AA4GpB,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,IAAI,uBA4DrD;AAED,eAAe,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-experimental-fetch-polyfill.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-20-8-0/remove-experimental-fetch-polyfill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAWpD,yBAA+B,IAAI,EAAE,IAAI,iBAiBxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"replace-experimental-just-in-time-compile.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-20-8-0/replace-experimental-just-in-time-compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAsBnE,yBAA+B,IAAI,EAAE,IAAI,iBAgBxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-inject-document-domain.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-20-8-0/set-inject-document-domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAsBpD,yBAA+B,IAAI,EAAE,IAAI,iBAiBxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-component-testing-mount-imports.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-20-8-0/update-component-testing-mount-imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAmBpB,yBAA+B,IAAI,EAAE,IAAI,iBAuCxC"}
@@ -1,3 +0,0 @@
1
- import { type Tree } from '@nx/devkit';
2
- export default function (tree: Tree): Promise<void>;
3
- //# sourceMappingURL=remove-tsconfig-and-copy-files-options-from-cypress-executor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-tsconfig-and-copy-files-options-from-cypress-executor.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,IAAI,EAGV,MAAM,YAAY,CAAC;AAMpB,yBAA+B,IAAI,EAAE,IAAI,iBA8DxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rename-cy-exec-code-property.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-22-1-0/rename-cy-exec-code-property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAQ1E,wBAA8B,wBAAwB,CAAC,IAAI,EAAE,IAAI,iBAiBhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-angular-component-testing-support.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-22-1-0/update-angular-component-testing-support.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAiBpB,wBAA8B,oCAAoC,CAAC,IAAI,EAAE,IAAI,iBAuC5E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-selector-playground-api.d.ts","sourceRoot":"","sources":["../../../../../../packages/cypress/src/migrations/update-22-1-0/update-selector-playground-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAS1E,wBAA8B,2BAA2B,CAAC,IAAI,EAAE,IAAI,iBAiBnE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAQnB,MAAM,YAAY,CAAC;AAapB,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC;AAcD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,oBAAoB,CAwB3D,CAAC;AAEF,eAAO,MAAM,aAAa,qCAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"preprocessor-vite.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/plugins/preprocessor-vite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;IAuBI;AAMJ,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAExC,KAAK,mBAAmB,GAAG,CACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACtB,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAI9B;;;;GAIG;AACH,iBAAS,gBAAgB,CACvB,eAAe,GAAE,YAAiB,GACjC,mBAAmB,CAkErB;AAUD,eAAe,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-linter.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/utils/add-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,IAAI,EACL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAiBtE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;;QAGI;IACJ,UAAU,EAAE,MAAM,CAAC;IACnB;;;QAGI;IACJ,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,eAAe,uBA8HzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAEhE,OAAO,KAAK,EAOV,uBAAuB,EAIxB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,eAAO,MAAM,gCAAgC,mCACX,CAAC;AAMnC,wBAAsB,mBAAmB,CACvC,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,MAAM,mBAsDhB;AAED;;;;IAII;AACJ,wBAAsB,kBAAkB,CACtC,gBAAgB,EAAE,MAAM,EACxB,OAAO,GAAE,yBAA8B,mBA8CxC;AAED;;;;IAII;AACJ,wBAAsB,kBAAkB,CAAC,sBAAsB,EAAE,MAAM,mBAgCtE;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,GAClB,MAAM,CASR;AAED,wBAAgB,0BAA0B,CACxC,qBAAqB,EAAE,MAAM,GAC5B,uBAAuB,GAAG,IAAI,CAqChC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/utils/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ct-helpers.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/utils/ct-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAEL,oBAAoB,EAEpB,mBAAmB,EAEpB,MAAM,YAAY,CAAC;AAUpB,eAAO,MAAM,eAAe,QAA+B,CAAC;AAC5D;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,eAAe,UAe3D;AAED;;;IAGI;AACJ,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,YAAY,EACnB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,IAAI,cAAoB,GACvB,OAAO,CA4BT;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,MAAM,GACjB,oBAAoB,CA2BtB;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC5C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,iBAAiB,EAAE,MAAM,GACxB,eAAe,CAgBjB"}
@@ -1,12 +0,0 @@
1
- /**
2
- * @deprecated use the `getInstalledCypressMajorVersion` exported from
3
- * `@nx/cypress/src/utils/versions` instead. It will be removed in v23.
4
- */
5
- export declare function installedCypressVersion(): number;
6
- /**
7
- * will not throw if cypress is not installed
8
- * @deprecated use the `assertMinimumCypressVersion` exported from
9
- * `@nx/cypress/src/utils/versions` instead. It will be removed in v23.
10
- */
11
- export declare function assertMinimumCypressVersion(minVersion: number): void;
12
- //# sourceMappingURL=cypress-version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cypress-version.d.ts","sourceRoot":"","sources":["../../../../../packages/cypress/src/utils/cypress-version.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,uBAAuB,WAgBtC;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,QAO7D"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.installedCypressVersion = installedCypressVersion;
4
- exports.assertMinimumCypressVersion = assertMinimumCypressVersion;
5
- let cypressPackageJson;
6
- let loadedCypress = false;
7
- /**
8
- * @deprecated use the `getInstalledCypressMajorVersion` exported from
9
- * `@nx/cypress/src/utils/versions` instead. It will be removed in v23.
10
- */
11
- function installedCypressVersion() {
12
- if (!loadedCypress) {
13
- try {
14
- cypressPackageJson = require('cypress/package.json');
15
- }
16
- catch { }
17
- }
18
- if (!cypressPackageJson) {
19
- return null;
20
- }
21
- const cypressPackageVersion = cypressPackageJson.version;
22
- const majorVersion = cypressPackageVersion.split('.')[0];
23
- if (!majorVersion) {
24
- return 0;
25
- }
26
- return +majorVersion;
27
- }
28
- /**
29
- * will not throw if cypress is not installed
30
- * @deprecated use the `assertMinimumCypressVersion` exported from
31
- * `@nx/cypress/src/utils/versions` instead. It will be removed in v23.
32
- */
33
- function assertMinimumCypressVersion(minVersion) {
34
- const version = installedCypressVersion();
35
- if (version && version < minVersion) {
36
- throw new Error(`Cypress version of ${minVersion} or higher is not installed. Expected Cypress v${minVersion}+, found Cypress v${version} instead.`);
37
- }
38
- }