@nx/playwright 17.3.0-canary.20240103-1d1d465 → 17.3.0-canary.20240105-a04eb74
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/playwright",
|
|
3
|
-
"version": "17.3.0-canary.
|
|
3
|
+
"version": "17.3.0-canary.20240105-a04eb74",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"homepage": "https://nx.dev",
|
|
6
6
|
"private": false,
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"directory": "packages/playwright"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nx/devkit": "17.3.0-canary.
|
|
36
|
-
"@nx/eslint": "17.3.0-canary.
|
|
37
|
-
"@nx/js": "17.3.0-canary.
|
|
35
|
+
"@nx/devkit": "17.3.0-canary.20240105-a04eb74",
|
|
36
|
+
"@nx/eslint": "17.3.0-canary.20240105-a04eb74",
|
|
37
|
+
"@nx/js": "17.3.0-canary.20240105-a04eb74",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
39
|
"minimatch": "3.0.5"
|
|
40
40
|
},
|
|
@@ -6,6 +6,7 @@ const path = require("path");
|
|
|
6
6
|
const init_1 = require("../init/init");
|
|
7
7
|
const add_linter_1 = require("../../utils/add-linter");
|
|
8
8
|
const versions_1 = require("@nx/js/src/utils/versions");
|
|
9
|
+
const js_1 = require("@nx/js");
|
|
9
10
|
async function configurationGenerator(tree, options) {
|
|
10
11
|
const tasks = [];
|
|
11
12
|
tasks.push(await (0, init_1.default)(tree, {
|
|
@@ -24,20 +25,20 @@ async function configurationGenerator(tree, options) {
|
|
|
24
25
|
});
|
|
25
26
|
if (!hasTsConfig) {
|
|
26
27
|
tree.write(`${projectConfig.root}/tsconfig.json`, JSON.stringify({
|
|
27
|
-
extends:
|
|
28
|
+
extends: (0, js_1.getRelativePathToRootTsConfig)(tree, projectConfig.root),
|
|
28
29
|
compilerOptions: {
|
|
29
30
|
allowJs: true,
|
|
30
|
-
outDir:
|
|
31
|
+
outDir: `${offsetFromProjectRoot}dist/out-tsc`,
|
|
31
32
|
module: 'commonjs',
|
|
32
33
|
sourceMap: false,
|
|
33
34
|
},
|
|
34
35
|
include: [
|
|
35
36
|
'**/*.ts',
|
|
36
37
|
'**/*.js',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
`${offsetFromProjectRoot}playwright.config.ts`,
|
|
39
|
+
`${offsetFromProjectRoot}**/*.spec.ts`,
|
|
40
|
+
`${offsetFromProjectRoot}**/*.spec.js`,
|
|
41
|
+
`${offsetFromProjectRoot}**/*.d.ts`,
|
|
41
42
|
],
|
|
42
43
|
}, null, 2));
|
|
43
44
|
}
|