@nx/cypress 20.8.0-rc.0 → 20.8.0

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.8.0-rc.0",
3
+ "version": "20.8.0",
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.8.0-rc.0",
40
- "@nx/eslint": "20.8.0-rc.0",
41
- "@nx/js": "20.8.0-rc.0",
39
+ "@nx/devkit": "20.8.0",
40
+ "@nx/eslint": "20.8.0",
41
+ "@nx/js": "20.8.0",
42
42
  "@phenomnomnominal/tsquery": "~5.0.1",
43
43
  "detect-port": "^1.5.1",
44
44
  "semver": "^7.6.3",
@@ -154,10 +154,14 @@ async function buildCypressTargets(configFilePath, projectRoot, options, context
154
154
  const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
155
155
  const targets = {};
156
156
  let metadata;
157
+ const tsNodeCompilerOptions = JSON.stringify({ customConditions: null });
157
158
  if ('e2e' in cypressConfig) {
158
159
  targets[options.targetName] = {
159
160
  command: `cypress run`,
160
- options: { cwd: projectRoot },
161
+ options: {
162
+ cwd: projectRoot,
163
+ env: { TS_NODE_COMPILER_OPTIONS: tsNodeCompilerOptions },
164
+ },
161
165
  cache: true,
162
166
  inputs: getInputs(namedInputs),
163
167
  outputs: getOutputs(projectRoot, cypressConfig, 'e2e'),
@@ -217,6 +221,7 @@ async function buildCypressTargets(configFilePath, projectRoot, options, context
217
221
  command: `cypress run --env webServerCommand="${ciWebServerCommand}" --spec ${relativeSpecFilePath} --config=${getTargetConfig(cypressConfig, outputSubfolder, ciBaseUrl)}`,
218
222
  options: {
219
223
  cwd: projectRoot,
224
+ env: { TS_NODE_COMPILER_OPTIONS: tsNodeCompilerOptions },
220
225
  },
221
226
  parallelism: false,
222
227
  metadata: {
@@ -262,7 +267,10 @@ async function buildCypressTargets(configFilePath, projectRoot, options, context
262
267
  // This will not override the e2e target if it is the same
263
268
  targets[options.componentTestingTargetName] ??= {
264
269
  command: `cypress run --component`,
265
- options: { cwd: projectRoot },
270
+ options: {
271
+ cwd: projectRoot,
272
+ env: { TS_NODE_COMPILER_OPTIONS: tsNodeCompilerOptions },
273
+ },
266
274
  cache: true,
267
275
  inputs: getInputs(namedInputs),
268
276
  outputs: getOutputs(projectRoot, cypressConfig, 'component'),