@nx/playwright 23.0.0-beta.7 → 23.0.0-beta.9

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": "23.0.0-beta.7",
3
+ "version": "23.0.0-beta.9",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -34,14 +34,14 @@
34
34
  "directory": "packages/playwright"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "23.0.0-beta.7",
38
- "@nx/eslint": "23.0.0-beta.7",
39
- "@nx/js": "23.0.0-beta.7",
37
+ "@nx/devkit": "23.0.0-beta.9",
38
+ "@nx/eslint": "23.0.0-beta.9",
39
+ "@nx/js": "23.0.0-beta.9",
40
40
  "tslib": "^2.3.0",
41
- "minimatch": "10.2.4"
41
+ "minimatch": "10.2.5"
42
42
  },
43
43
  "devDependencies": {
44
- "nx": "23.0.0-beta.7"
44
+ "nx": "23.0.0-beta.9"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@playwright/test": "^1.36.0"
@@ -1 +1 @@
1
- {"version":3,"file":"playwright.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/playwright/src/executors/playwright/playwright.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAKhB,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,wBAAwB;IAKvC,OAAO,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC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,EACF,IAAI,GACJ,KAAK,GACL,gBAAgB,GAChB,gBAAgB,GAChB,mBAAmB,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,eAAe;aAsCM,OAAO;GAKtC;AAkDD,eAAe,kBAAkB,CAAC"}
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.playwrightExecutor = playwrightExecutor;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const child_process_1 = require("child_process");
6
+ const deprecation_1 = require("../../utils/deprecation");
6
7
  async function playwrightExecutor(options, context) {
8
+ (0, deprecation_1.warnPlaywrightExecutorDeprecation)();
7
9
  const projectRoot = context.projectGraph?.nodes?.[context?.projectName]?.data?.root;
8
10
  if (!projectRoot) {
9
11
  throw new Error(`Unable to find the Project Root for ${context.projectName}. Is it set in the project.json?`);
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/playwright/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,iBAAiB,EAUjB,IAAI,EAML,MAAM,YAAY,CAAC;AAepB,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,UAAU,CAAC;AAGlB,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,4BAA4B,8BAGtC;AAED,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,4BAA4B,8BA+MzC;AA2JD,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/playwright/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,iBAAiB,EAUjB,IAAI,EAML,MAAM,YAAY,CAAC;AAgBpB,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,UAAU,CAAC;AAGlB,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,4BAA4B,8BAGtC;AAED,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,4BAA4B,8BAgNzC;AA2JD,eAAe,sBAAsB,CAAC"}
@@ -10,6 +10,7 @@ const generator_prompts_1 = require("@nx/js/src/utils/generator-prompts");
10
10
  const package_manager_workspaces_1 = require("@nx/js/src/utils/package-manager-workspaces");
11
11
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
12
12
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
13
+ const deprecation_1 = require("../../utils/deprecation");
13
14
  const child_process_1 = require("child_process");
14
15
  const path = tslib_1.__importStar(require("path"));
15
16
  const add_linter_1 = require("../../utils/add-linter");
@@ -128,6 +129,7 @@ async function configurationGeneratorInternal(tree, rawOptions) {
128
129
  ? p === '@nx/playwright/plugin'
129
130
  : p.plugin === '@nx/playwright/plugin');
130
131
  if (!hasPlugin) {
132
+ (0, deprecation_1.warnPlaywrightExecutorGenerating)();
131
133
  addE2eTarget(tree, options);
132
134
  setupE2ETargetDefaults(tree);
133
135
  }
@@ -0,0 +1,4 @@
1
+ export declare const PLAYWRIGHT_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/playwright:playwright` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/playwright:convert-to-inferred` to migrate to the `@nx/playwright/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
2
+ export declare function warnPlaywrightExecutorDeprecation(): void;
3
+ export declare function warnPlaywrightExecutorGenerating(): void;
4
+ //# sourceMappingURL=deprecation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/playwright/src/utils/deprecation.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uCAAuC,mRAC8N,CAAC;AAEnR,wBAAgB,iCAAiC,IAAI,IAAI,CAExD;AAED,wBAAgB,gCAAgC,IAAI,IAAI,CAIvD"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PLAYWRIGHT_EXECUTOR_DEPRECATION_MESSAGE = void 0;
4
+ exports.warnPlaywrightExecutorDeprecation = warnPlaywrightExecutorDeprecation;
5
+ exports.warnPlaywrightExecutorGenerating = warnPlaywrightExecutorGenerating;
6
+ const devkit_1 = require("@nx/devkit");
7
+ // TODO(v24): Remove the @nx/playwright:playwright executor. The inferred
8
+ // plugin (@nx/playwright/plugin) and the convert-to-inferred generator stay
9
+ // supported.
10
+ exports.PLAYWRIGHT_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/playwright:playwright` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/playwright:convert-to-inferred` to migrate to the `@nx/playwright/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
11
+ function warnPlaywrightExecutorDeprecation() {
12
+ devkit_1.logger.warn(exports.PLAYWRIGHT_EXECUTOR_DEPRECATION_MESSAGE);
13
+ }
14
+ function warnPlaywrightExecutorGenerating() {
15
+ devkit_1.logger.warn('Generating a target that uses the deprecated `@nx/playwright:playwright` executor. The executor will be removed in Nx v24. Run `nx g @nx/playwright:convert-to-inferred` next to migrate this target to the `@nx/playwright/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
16
+ }