@nx/cypress 23.2.0-beta.1 → 23.2.0-beta.2
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/dist/src/utils/config.js +4 -1
- package/package.json +5 -5
package/dist/src/utils/config.js
CHANGED
|
@@ -131,7 +131,10 @@ ${jitComment}
|
|
|
131
131
|
}`;
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
// Re-running the generator must not prepend a second declaration - Cypress
|
|
135
|
+
// loads TS configs through esbuild, which rejects duplicate bindings.
|
|
136
|
+
const isPresetAlreadyDeclared = tsquery.query(updatedConfigContents, ':matches(ImportSpecifier, BindingElement) Identifier[name="nxComponentTestingPreset"]').length > 0;
|
|
137
|
+
if (presetImportPath && !isPresetAlreadyDeclared) {
|
|
135
138
|
// Use the path verbatim - callers pass the public exported subpath. Don't
|
|
136
139
|
// append `.js`: @nx/react and @nx/angular's package exports only declare
|
|
137
140
|
// the bare `./plugins/component-testing` subpath, so a `.js` suffix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/cypress",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"semver": "^7.6.3",
|
|
90
90
|
"tree-kill": "^1.2.2",
|
|
91
91
|
"tslib": "^2.3.0",
|
|
92
|
-
"@nx/devkit": "23.2.0-beta.
|
|
93
|
-
"@nx/
|
|
94
|
-
"@nx/
|
|
92
|
+
"@nx/devkit": "23.2.0-beta.2",
|
|
93
|
+
"@nx/eslint": "23.2.0-beta.2",
|
|
94
|
+
"@nx/js": "23.2.0-beta.2"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"nx": "23.2.0-beta.
|
|
97
|
+
"nx": "23.2.0-beta.2"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"cypress": ">= 13 < 16"
|