@nx/expo 23.0.0-beta.8 → 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.
Files changed (30) hide show
  1. package/package.json +8 -8
  2. package/src/executors/build/build.impl.d.ts.map +1 -1
  3. package/src/executors/build/build.impl.js +2 -0
  4. package/src/executors/build/schema.json +1 -0
  5. package/src/executors/export/export.impl.d.ts.map +1 -1
  6. package/src/executors/export/export.impl.js +2 -0
  7. package/src/executors/export/schema.json +1 -0
  8. package/src/executors/install/install.impl.d.ts.map +1 -1
  9. package/src/executors/install/install.impl.js +2 -0
  10. package/src/executors/install/schema.json +1 -0
  11. package/src/executors/prebuild/prebuild.impl.d.ts.map +1 -1
  12. package/src/executors/prebuild/prebuild.impl.js +2 -0
  13. package/src/executors/prebuild/schema.json +1 -0
  14. package/src/executors/run/run.impl.d.ts.map +1 -1
  15. package/src/executors/run/run.impl.js +2 -0
  16. package/src/executors/run/schema.json +1 -0
  17. package/src/executors/serve/schema.json +1 -0
  18. package/src/executors/serve/serve.impl.d.ts.map +1 -1
  19. package/src/executors/serve/serve.impl.js +2 -0
  20. package/src/executors/start/schema.json +1 -0
  21. package/src/executors/start/start.impl.d.ts.map +1 -1
  22. package/src/executors/start/start.impl.js +2 -0
  23. package/src/executors/submit/schema.json +1 -0
  24. package/src/executors/submit/submit.impl.d.ts.map +1 -1
  25. package/src/executors/submit/submit.impl.js +2 -0
  26. package/src/generators/application/lib/add-project.d.ts.map +1 -1
  27. package/src/generators/application/lib/add-project.js +2 -0
  28. package/src/utils/deprecation.d.ts +4 -0
  29. package/src/utils/deprecation.d.ts.map +1 -0
  30. package/src/utils/deprecation.js +23 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/expo",
3
- "version": "23.0.0-beta.8",
3
+ "version": "23.0.0-beta.9",
4
4
  "private": false,
5
5
  "description": "The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.",
6
6
  "keywords": [
@@ -29,10 +29,10 @@
29
29
  "type": "commonjs",
30
30
  "types": "index.d.ts",
31
31
  "dependencies": {
32
- "@nx/devkit": "23.0.0-beta.8",
33
- "@nx/eslint": "23.0.0-beta.8",
34
- "@nx/js": "23.0.0-beta.8",
35
- "@nx/react": "23.0.0-beta.8",
32
+ "@nx/devkit": "23.0.0-beta.9",
33
+ "@nx/eslint": "23.0.0-beta.9",
34
+ "@nx/js": "23.0.0-beta.9",
35
+ "@nx/react": "23.0.0-beta.9",
36
36
  "enhanced-resolve": "^5.8.3",
37
37
  "picocolors": "^1.1.0",
38
38
  "semver": "^7.6.3",
@@ -44,11 +44,11 @@
44
44
  "metro-resolver": ">= 0.82.0"
45
45
  },
46
46
  "devDependencies": {
47
- "nx": "23.0.0-beta.8"
47
+ "nx": "23.0.0-beta.9"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@nx/detox": "23.0.0-beta.8",
51
- "@nx/rollup": "23.0.0-beta.8"
50
+ "@nx/detox": "23.0.0-beta.9",
51
+ "@nx/rollup": "23.0.0-beta.9"
52
52
  },
53
53
  "executors": "./executors.json",
54
54
  "ng-update": {
@@ -1 +1 @@
1
- {"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAMhB,MAAM,YAAY,CAAC;AAUpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,aAAa,CAC1C,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,sBAAsB,CAAC,CAqBxC"}
1
+ {"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAMhB,MAAM,YAAY,CAAC;AAWpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,aAAa,CAC1C,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,sBAAsB,CAAC,CAuBxC"}
@@ -8,8 +8,10 @@ const child_process_1 = require("child_process");
8
8
  const node_fs_1 = require("node:fs");
9
9
  const path_1 = require("path");
10
10
  const resolve_eas_1 = require("../../utils/resolve-eas");
11
+ const deprecation_1 = require("../../utils/deprecation");
11
12
  let childProcess;
12
13
  async function* buildExecutor(options, context) {
14
+ (0, deprecation_1.warnExpoExecutorDeprecation)('build');
13
15
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
14
16
  let resetLocalFunction;
15
17
  try {
@@ -7,6 +7,7 @@
7
7
  "title": "Expo EAS Build executor",
8
8
  "description": "Start an EAS build for your expo project.",
9
9
  "type": "object",
10
+ "x-deprecated": "The `@nx/expo:build` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
10
11
  "presets": [
11
12
  {
12
13
  "name": "Build for a specific platform",
@@ -1 +1 @@
1
- {"version":3,"file":"export.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/export/export.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAKpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,cAAc,CAC3C,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,gBAAgB,CAAC,CAclC;AAqCD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,oBAAoB,EAC7B,WAAW,EAAE,MAAM,SA4BpB"}
1
+ {"version":3,"file":"export.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/export/export.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAKpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGhD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,cAAc,CAC3C,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,gBAAgB,CAAC,CAgBlC;AAqCD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,oBAAoB,EAC7B,WAAW,EAAE,MAAM,SA4BpB"}
@@ -6,8 +6,10 @@ const devkit_1 = require("@nx/devkit");
6
6
  const internal_1 = require("@nx/devkit/internal");
7
7
  const child_process_1 = require("child_process");
8
8
  const path_1 = require("path");
9
+ const deprecation_1 = require("../../utils/deprecation");
9
10
  let childProcess;
10
11
  async function* exportExecutor(options, context) {
12
+ (0, deprecation_1.warnExpoExecutorDeprecation)('export');
11
13
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
12
14
  try {
13
15
  await exportAsync(context.root, projectRoot, options);
@@ -7,6 +7,7 @@
7
7
  "title": "Expo Export",
8
8
  "description": "Export the JavaScript and assets for your app using Metro/webpack bundler.",
9
9
  "type": "object",
10
+ "x-deprecated": "The `@nx/expo:export` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
10
11
  "properties": {
11
12
  "platform": {
12
13
  "description": "Choose the platform to compile for",
@@ -1 +1 @@
1
- {"version":3,"file":"install.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/install/install.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAS,MAAM,YAAY,CAAC;AAIpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAO9C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,eAAe,CAC5C,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,iBAAiB,CAAC,CAWnC;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,kBAAkB,iBAwC5B"}
1
+ {"version":3,"file":"install.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/install/install.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAS,MAAM,YAAY,CAAC;AAIpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAQ9C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,eAAe,CAC5C,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,iBAAiB,CAAC,CAanC;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,kBAAkB,iBAwC5B"}
@@ -6,8 +6,10 @@ const devkit_1 = require("@nx/devkit");
6
6
  const fileutils_1 = require("nx/src/utils/fileutils");
7
7
  const path_1 = require("path");
8
8
  const sync_deps_impl_1 = require("../sync-deps/sync-deps.impl");
9
+ const deprecation_1 = require("../../utils/deprecation");
9
10
  let childProcess;
10
11
  async function* installExecutor(options, context) {
12
+ (0, deprecation_1.warnExpoExecutorDeprecation)('install');
11
13
  try {
12
14
  await installAndUpdatePackageJson(context, options);
13
15
  yield {
@@ -7,6 +7,7 @@
7
7
  "title": "Expo Install",
8
8
  "description": "Install a module or other package to a project.",
9
9
  "type": "object",
10
+ "x-deprecated": "The `@nx/expo:install` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
10
11
  "properties": {
11
12
  "packages": {
12
13
  "type": "array",
@@ -1 +1 @@
1
- {"version":3,"file":"prebuild.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/prebuild/prebuild.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,YAAY,CAAC;AAMnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,gBAAgB,CAC7C,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,kBAAkB,CAAC,CAyBpC;AAED,wBAAgB,aAAa,CAC3B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,CA2BjB"}
1
+ {"version":3,"file":"prebuild.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/prebuild/prebuild.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,YAAY,CAAC;AAMnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,gBAAgB,CAC7C,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,kBAAkB,CAAC,CA2BpC;AAED,wBAAgB,aAAa,CAC3B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,CA2BjB"}
@@ -7,8 +7,10 @@ const internal_1 = require("@nx/devkit/internal");
7
7
  const child_process_1 = require("child_process");
8
8
  const path_1 = require("path");
9
9
  const pod_install_task_1 = require("../../utils/pod-install-task");
10
+ const deprecation_1 = require("../../utils/deprecation");
10
11
  let childProcess;
11
12
  async function* prebuildExecutor(options, context) {
13
+ (0, deprecation_1.warnExpoExecutorDeprecation)('prebuild');
12
14
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
13
15
  try {
14
16
  await prebuildAsync(context.root, projectRoot, options);
@@ -7,6 +7,7 @@
7
7
  "title": "Expo Prebuild",
8
8
  "description": "Create native iOS and Android project files for building natively.",
9
9
  "type": "object",
10
+ "x-deprecated": "The `@nx/expo:prebuild` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
10
11
  "properties": {
11
12
  "clean": {
12
13
  "type": "boolean",
@@ -1 +1 @@
1
- {"version":3,"file":"run.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/run/run.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAS,MAAM,YAAY,CAAC;AAOpD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAI1C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,WAAW,CACxC,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,aAAa,CAAC,CAkC/B"}
1
+ {"version":3,"file":"run.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/run/run.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAS,MAAM,YAAY,CAAC;AAOpD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK1C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,WAAW,CACxC,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,aAAa,CAAC,CAoC/B"}
@@ -9,8 +9,10 @@ const os_1 = require("os");
9
9
  const path_1 = require("path");
10
10
  const prebuild_impl_1 = require("../prebuild/prebuild.impl");
11
11
  const pod_install_task_1 = require("../../utils/pod-install-task");
12
+ const deprecation_1 = require("../../utils/deprecation");
12
13
  let childProcess;
13
14
  async function* runExecutor(options, context) {
15
+ (0, deprecation_1.warnExpoExecutorDeprecation)('run');
14
16
  if ((0, os_1.platform)() !== 'darwin' && options.platform === 'ios') {
15
17
  throw new Error(`The run-ios build requires Mac to run`);
16
18
  }
@@ -8,6 +8,7 @@
8
8
  "title": "Run iOS or Android application",
9
9
  "description": "Run Expo target options.",
10
10
  "type": "object",
11
+ "x-deprecated": "The `@nx/expo:run` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
11
12
  "properties": {
12
13
  "platform": {
13
14
  "description": "Platform to run for (ios, android).",
@@ -8,6 +8,7 @@
8
8
  "title": "Serve web app for Expo",
9
9
  "description": "Packager Server target options.",
10
10
  "type": "object",
11
+ "x-deprecated": "The `@nx/expo:serve` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
11
12
  "properties": {
12
13
  "port": {
13
14
  "type": "number",
@@ -1 +1 @@
1
- {"version":3,"file":"serve.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/serve/serve.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,aAAa,CAC1C,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,CAAC,CA0BjC;AAED,wBAAsB,WAAW,CAC/B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,YAAY,CAAC,CAmBvB"}
1
+ {"version":3,"file":"serve.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/serve/serve.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGnD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,aAAa,CAC1C,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,CAAC,CA4BjC;AAED,wBAAsB,WAAW,CAC/B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,YAAY,CAAC,CAmBvB"}
@@ -7,7 +7,9 @@ const internal_1 = require("@nx/devkit/internal");
7
7
  const child_process_1 = require("child_process");
8
8
  const path_1 = require("path");
9
9
  const is_packager_running_1 = require("./lib/is-packager-running");
10
+ const deprecation_1 = require("../../utils/deprecation");
10
11
  async function* serveExecutor(options, context) {
12
+ (0, deprecation_1.warnExpoExecutorDeprecation)('serve');
11
13
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
12
14
  const serveProcess = await runCliServe(context.root, projectRoot, options);
13
15
  yield {
@@ -8,6 +8,7 @@
8
8
  "title": "Packager Server for Expo",
9
9
  "description": "Packager Server target options.",
10
10
  "type": "object",
11
+ "x-deprecated": "The `@nx/expo:start` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
11
12
  "properties": {
12
13
  "forceManifestType": {
13
14
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"start.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/start/start.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAC;AAK5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,aAAa,CAC1C,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,CAAC,CAmBjC"}
1
+ {"version":3,"file":"start.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/start/start.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAC;AAK5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,aAAa,CAC1C,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,eAAe,CAAC,CAqBjC"}
@@ -7,8 +7,10 @@ const devkit_1 = require("@nx/devkit");
7
7
  const internal_1 = require("@nx/devkit/internal");
8
8
  const child_process_1 = require("child_process");
9
9
  const path_1 = require("path");
10
+ const deprecation_1 = require("../../utils/deprecation");
10
11
  let childProcess;
11
12
  async function* startExecutor(options, context) {
13
+ (0, deprecation_1.warnExpoExecutorDeprecation)('start');
12
14
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
13
15
  try {
14
16
  const baseUrl = `http://localhost:${options.port}`;
@@ -4,6 +4,7 @@
4
4
  "title": "EXPO EAS Submit Executor",
5
5
  "description": "Submit app binary to App Store and/or Play Store.",
6
6
  "type": "object",
7
+ "x-deprecated": "The `@nx/expo:submit` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` to migrate to the `@nx/expo/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
7
8
  "presets": [
8
9
  {
9
10
  "name": "Submit for a specific platform",
@@ -1 +1 @@
1
- {"version":3,"file":"submit.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/submit/submit.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAS,MAAM,YAAY,CAAC;AAOpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,cAAc,CAC3C,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,uBAAuB,CAAC,CAazC"}
1
+ {"version":3,"file":"submit.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/submit/submit.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAS,MAAM,YAAY,CAAC;AAOpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGhD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,cAAc,CAC3C,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,uBAAuB,CAAC,CAezC"}
@@ -6,8 +6,10 @@ const internal_1 = require("@nx/devkit/internal");
6
6
  const path_1 = require("path");
7
7
  const child_process_1 = require("child_process");
8
8
  const resolve_eas_1 = require("../../utils/resolve-eas");
9
+ const deprecation_1 = require("../../utils/deprecation");
9
10
  let childProcess;
10
11
  async function* submitExecutor(options, context) {
12
+ (0, deprecation_1.warnExpoExecutorDeprecation)('submit');
11
13
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
12
14
  try {
13
15
  await runCliSubmit(context.root, projectRoot, options);
@@ -1 +1 @@
1
- {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"AACA,OAAO,EAML,IAAI,EAEL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAuD/D"}
1
+ {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"AACA,OAAO,EAML,IAAI,EAEL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAwD/D"}
@@ -4,9 +4,11 @@ exports.addProject = addProject;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const has_expo_plugin_1 = require("../../../utils/has-expo-plugin");
7
+ const deprecation_1 = require("../../../utils/deprecation");
7
8
  function addProject(host, options) {
8
9
  const hasPlugin = (0, has_expo_plugin_1.hasExpoPlugin)(host);
9
10
  if (!hasPlugin) {
11
+ (0, deprecation_1.warnExpoExecutorGenerating)();
10
12
  (0, internal_1.addBuildTargetDefaults)(host, '@nx/expo:build');
11
13
  }
12
14
  const projectConfiguration = {
@@ -0,0 +1,4 @@
1
+ export declare function warnExpoExecutorDeprecation(executorName: string): void;
2
+ export declare function expoSchemaDeprecationMessage(executorName: string): string;
3
+ export declare function warnExpoExecutorGenerating(): void;
4
+ //# sourceMappingURL=deprecation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/deprecation.ts"],"names":[],"mappings":"AAYA,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAEtE;AAED,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,wBAAgB,0BAA0B,IAAI,IAAI,CAIjD"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.warnExpoExecutorDeprecation = warnExpoExecutorDeprecation;
4
+ exports.expoSchemaDeprecationMessage = expoSchemaDeprecationMessage;
5
+ exports.warnExpoExecutorGenerating = warnExpoExecutorGenerating;
6
+ const devkit_1 = require("@nx/devkit");
7
+ // TODO(v24): Remove the @nx/expo:build, :export, :install, :prebuild, :run,
8
+ // :serve, :start, and :submit executors. The inferred plugin
9
+ // (@nx/expo/plugin) and the convert-to-inferred generator stay supported.
10
+ // (`@nx/expo:build-list`, `:sync-deps`, `:update`, and `:ensure-symlink`
11
+ // are not covered by `convert-to-inferred` and stay as-is.)
12
+ function buildMessage(executorName) {
13
+ return `The \`@nx/expo:${executorName}\` executor is deprecated and will be removed in Nx v24. Run \`nx g @nx/expo:convert-to-inferred\` to migrate to the \`@nx/expo/plugin\` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.`;
14
+ }
15
+ function warnExpoExecutorDeprecation(executorName) {
16
+ devkit_1.logger.warn(buildMessage(executorName));
17
+ }
18
+ function expoSchemaDeprecationMessage(executorName) {
19
+ return buildMessage(executorName);
20
+ }
21
+ function warnExpoExecutorGenerating() {
22
+ devkit_1.logger.warn('Generating targets that use the deprecated `@nx/expo:build`, `@nx/expo:export`, `@nx/expo:install`, `@nx/expo:prebuild`, `@nx/expo:run`, `@nx/expo:serve`, `@nx/expo:start`, and `@nx/expo:submit` executors. These executors will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` next to migrate these targets to the `@nx/expo/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
23
+ }