@nx/expo 23.0.0-pr.35413.460eeef → 23.0.0-rc.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/{index.d.ts → dist/index.d.ts} +0 -1
- package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
- package/dist/plugins/jest/svg-mock.d.ts +1 -0
- package/{plugins → dist/plugins}/jest/svg-mock.js +2 -0
- package/{plugins → dist/plugins}/metro-resolver.d.ts +0 -1
- package/{plugins → dist/plugins}/metro-resolver.js +2 -2
- package/{plugins → dist/plugins}/plugin.d.ts +3 -4
- package/{plugins → dist/plugins}/plugin.js +68 -39
- package/{plugins → dist/plugins}/with-nx-metro.d.ts +0 -1
- package/dist/readme-template.md +18 -0
- package/{src → dist/src}/executors/build/build.impl.d.ts +0 -1
- package/{src → dist/src}/executors/build/build.impl.js +2 -0
- package/{src → dist/src}/executors/build/schema.json +1 -0
- package/{src → dist/src}/executors/build-list/build-list.impl.d.ts +0 -1
- package/{src → dist/src}/executors/ensure-symlink/ensure-symlink.impl.d.ts +0 -1
- package/{src → dist/src}/executors/export/export.impl.d.ts +0 -1
- package/{src → dist/src}/executors/export/export.impl.js +2 -0
- package/{src → dist/src}/executors/export/schema.json +1 -0
- package/{src → dist/src}/executors/install/install.impl.d.ts +0 -1
- package/{src → dist/src}/executors/install/install.impl.js +2 -0
- package/{src → dist/src}/executors/install/schema.json +1 -0
- package/{src → dist/src}/executors/prebuild/prebuild.impl.d.ts +0 -1
- package/{src → dist/src}/executors/prebuild/prebuild.impl.js +2 -0
- package/{src → dist/src}/executors/prebuild/schema.json +1 -0
- package/{src → dist/src}/executors/run/run.impl.d.ts +0 -1
- package/{src → dist/src}/executors/run/run.impl.js +2 -0
- package/{src → dist/src}/executors/run/schema.json +1 -0
- package/{src → dist/src}/executors/serve/lib/is-packager-running.d.ts +0 -1
- package/{src → dist/src}/executors/serve/schema.json +1 -0
- package/{src → dist/src}/executors/serve/serve.impl.d.ts +0 -1
- package/{src → dist/src}/executors/serve/serve.impl.js +2 -0
- package/{src → dist/src}/executors/start/schema.json +1 -0
- package/{src → dist/src}/executors/start/start.impl.d.ts +0 -1
- package/{src → dist/src}/executors/start/start.impl.js +2 -0
- package/{src → dist/src}/executors/submit/schema.json +1 -0
- package/{src → dist/src}/executors/submit/submit.impl.d.ts +0 -1
- package/{src → dist/src}/executors/submit/submit.impl.js +2 -0
- package/{src → dist/src}/executors/sync-deps/sync-deps.impl.d.ts +0 -1
- package/{src → dist/src}/executors/update/update.impl.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.js +9 -8
- package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-e2e.js +5 -5
- package/{src → dist/src}/generators/application/lib/add-eas-scripts.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-project.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-project.js +5 -3
- package/{src → dist/src}/generators/application/lib/create-application-files.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/normalize-options.js +5 -5
- package/{src → dist/src}/generators/application/schema.d.ts +0 -1
- package/{src → dist/src}/generators/application/schema.json +0 -6
- package/{src → dist/src}/generators/component/component.d.ts +0 -1
- package/{src → dist/src}/generators/component/component.js +4 -2
- package/{src → dist/src}/generators/component/lib/add-import.d.ts +0 -1
- package/{src → dist/src}/generators/component/lib/normalize-options.d.ts +2 -3
- package/{src → dist/src}/generators/component/lib/normalize-options.js +5 -6
- package/{src → dist/src}/generators/component/schema.d.ts +0 -5
- package/{src → dist/src}/generators/component/schema.json +0 -5
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +6 -5
- package/{src → dist/src}/generators/convert-to-inferred/lib/post-target-transformer.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/post-target-transformer.js +2 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-build-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-export-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-generic-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-install-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-prebuild-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-run-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-serve-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-start-options.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-submit-options.d.ts +1 -2
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +4 -3
- package/{src → dist/src}/generators/init/lib/add-git-ignore-entry.d.ts +0 -1
- package/{src → dist/src}/generators/init/lib/gitignore-entries.d.ts +0 -1
- package/{src → dist/src}/generators/init/schema.d.ts +1 -1
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/generators/library/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/normalize-options.js +5 -5
- package/{src → dist/src}/generators/library/library.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.js +13 -14
- package/{src → dist/src}/migrations/update-21-4-0/add-jest-resolver.d.ts +0 -1
- package/{src → dist/src}/migrations/update-21-4-0/remove-deprecated-deps.d.ts +0 -1
- package/{src → dist/src}/migrations/update-21-4-0/update-splash-screen-config.d.ts +0 -1
- package/{src → dist/src}/migrations/update-22-2-0/add-expo-system-ui.d.ts +0 -1
- package/{src → dist/src}/migrations/update-22-2-0/update-jest-for-expo-54.d.ts +0 -1
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +223 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/{src → dist/src}/utils/add-linting.d.ts +0 -1
- package/{src → dist/src}/utils/add-linting.js +11 -12
- package/dist/src/utils/deprecation.d.ts +3 -0
- package/dist/src/utils/deprecation.js +23 -0
- package/{src → dist/src}/utils/ensure-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/ensure-dependencies.js +1 -1
- package/{src → dist/src}/utils/ensure-node-modules-symlink.d.ts +0 -1
- package/{src → dist/src}/utils/expo-project-detection.d.ts +0 -1
- package/{src → dist/src}/utils/expo-project-detection.js +2 -2
- package/{src → dist/src}/utils/find-all-npm-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/has-expo-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/init-root-babel-config.d.ts +0 -1
- package/{src → dist/src}/utils/jest/add-jest.d.ts +0 -1
- package/{src → dist/src}/utils/jest/add-jest.js +7 -6
- package/{src → dist/src}/utils/pod-install-task.d.ts +0 -1
- package/{src → dist/src}/utils/resolve-eas.d.ts +0 -1
- package/{src → dist/src}/utils/update-tsconfig-files.d.ts +0 -1
- package/{src → dist/src}/utils/version-utils.d.ts +3 -11
- package/dist/src/utils/version-utils.js +133 -0
- package/{src → dist/src}/utils/versions.d.ts +32 -14
- package/dist/src/utils/versions.js +87 -0
- package/dist/typings/svg.d.ts +6 -0
- package/executors.json +24 -24
- package/generators.json +10 -10
- package/migrations.json +93 -61
- package/package.json +82 -12
- package/index.d.ts.map +0 -1
- package/plugin.d.ts.map +0 -1
- package/plugins/jest/svg-mock.d.ts +0 -1
- package/plugins/jest/svg-mock.d.ts.map +0 -1
- package/plugins/metro-resolver.d.ts.map +0 -1
- package/plugins/plugin.d.ts.map +0 -1
- package/plugins/with-nx-metro.d.ts.map +0 -1
- package/src/executors/build/build.impl.d.ts.map +0 -1
- package/src/executors/build-list/build-list.impl.d.ts.map +0 -1
- package/src/executors/ensure-symlink/ensure-symlink.impl.d.ts.map +0 -1
- package/src/executors/export/export.impl.d.ts.map +0 -1
- package/src/executors/install/install.impl.d.ts.map +0 -1
- package/src/executors/prebuild/prebuild.impl.d.ts.map +0 -1
- package/src/executors/run/run.impl.d.ts.map +0 -1
- package/src/executors/serve/lib/is-packager-running.d.ts.map +0 -1
- package/src/executors/serve/serve.impl.d.ts.map +0 -1
- package/src/executors/start/start.impl.d.ts.map +0 -1
- package/src/executors/submit/submit.impl.d.ts.map +0 -1
- package/src/executors/sync-deps/sync-deps.impl.d.ts.map +0 -1
- package/src/executors/update/update.impl.d.ts.map +0 -1
- package/src/generators/application/application.d.ts.map +0 -1
- package/src/generators/application/lib/add-e2e.d.ts.map +0 -1
- package/src/generators/application/lib/add-eas-scripts.d.ts.map +0 -1
- package/src/generators/application/lib/add-project.d.ts.map +0 -1
- package/src/generators/application/lib/create-application-files.d.ts.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/component/component.d.ts.map +0 -1
- package/src/generators/component/lib/add-import.d.ts.map +0 -1
- package/src/generators/component/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-build-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-export-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-generic-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-install-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-prebuild-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-run-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-serve-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-start-options.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/process-submit-options.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/init/lib/add-git-ignore-entry.d.ts.map +0 -1
- package/src/generators/init/lib/gitignore-entries.d.ts.map +0 -1
- package/src/generators/library/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/library/library.d.ts.map +0 -1
- package/src/migrations/update-21-4-0/add-jest-resolver.d.ts.map +0 -1
- package/src/migrations/update-21-4-0/remove-deprecated-deps.d.ts.map +0 -1
- package/src/migrations/update-21-4-0/update-splash-screen-config.d.ts.map +0 -1
- package/src/migrations/update-22-2-0/add-expo-system-ui.d.ts.map +0 -1
- package/src/migrations/update-22-2-0/create-ai-instructions-for-expo-54.d.ts +0 -3
- package/src/migrations/update-22-2-0/create-ai-instructions-for-expo-54.d.ts.map +0 -1
- package/src/migrations/update-22-2-0/create-ai-instructions-for-expo-54.js +0 -16
- package/src/migrations/update-22-2-0/update-jest-for-expo-54.d.ts.map +0 -1
- package/src/utils/add-linting.d.ts.map +0 -1
- package/src/utils/ensure-dependencies.d.ts.map +0 -1
- package/src/utils/ensure-node-modules-symlink.d.ts.map +0 -1
- package/src/utils/expo-project-detection.d.ts.map +0 -1
- package/src/utils/find-all-npm-dependencies.d.ts.map +0 -1
- package/src/utils/has-expo-plugin.d.ts.map +0 -1
- package/src/utils/init-root-babel-config.d.ts.map +0 -1
- package/src/utils/jest/add-jest.d.ts.map +0 -1
- package/src/utils/pod-install-task.d.ts.map +0 -1
- package/src/utils/resolve-eas.d.ts.map +0 -1
- package/src/utils/update-tsconfig-files.d.ts.map +0 -1
- package/src/utils/version-utils.d.ts.map +0 -1
- package/src/utils/version-utils.js +0 -132
- package/src/utils/versions.d.ts.map +0 -1
- package/src/utils/versions.js +0 -60
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{docs → dist/docs}/build-list-examples.md +0 -0
- /package/{docs → dist/docs}/export-examples.md +0 -0
- /package/{docs → dist/docs}/prebuild-examples.md +0 -0
- /package/{docs → dist/docs}/run-examples.md +0 -0
- /package/{docs → dist/docs}/start-examples.md +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{plugin.js → dist/plugin.js} +0 -0
- /package/{plugins → dist/plugins}/with-nx-metro.js +0 -0
- /package/{src → dist/src}/executors/build/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/build-list/build-fragment.d.ts +0 -0
- /package/{src → dist/src}/executors/build-list/build-list.impl.js +0 -0
- /package/{src → dist/src}/executors/build-list/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/build-list/schema.json +0 -0
- /package/{src → dist/src}/executors/ensure-symlink/ensure-symlink.impl.js +0 -0
- /package/{src → dist/src}/executors/ensure-symlink/schema.json +0 -0
- /package/{src → dist/src}/executors/export/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/install/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/prebuild/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/run/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/serve/lib/is-packager-running.js +0 -0
- /package/{src → dist/src}/executors/serve/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/start/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/submit/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/sync-deps/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/sync-deps/schema.json +0 -0
- /package/{src → dist/src}/executors/sync-deps/sync-deps.impl.js +0 -0
- /package/{src → dist/src}/executors/update/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/update/schema.json +0 -0
- /package/{src → dist/src}/executors/update/update.impl.js +0 -0
- /package/{src → dist/src}/generators/application/files/base/.babelrc.js.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/app.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/assets/fonts/.gitkeep +0 -0
- /package/{src → dist/src}/generators/application/files/base/assets/images/adaptive-icon.png +0 -0
- /package/{src → dist/src}/generators/application/files/base/assets/images/favicon.png +0 -0
- /package/{src → dist/src}/generators/application/files/base/assets/images/icon.png +0 -0
- /package/{src → dist/src}/generators/application/files/base/assets/images/splash-icon.png +0 -0
- /package/{src → dist/src}/generators/application/files/base/eas.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/index.js.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/metro.config.js.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/package.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/src/app/App.spec.tsx.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/tsconfig.app.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/base/tsconfig.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/claimed/src/app/App.tsx.template +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/not-configured/src/app/App.tsx.template +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/unclaimed/src/app/App.tsx.template +0 -0
- /package/{src → dist/src}/generators/application/lib/add-eas-scripts.js +0 -0
- /package/{src → dist/src}/generators/application/lib/create-application-files.js +0 -0
- /package/{src → dist/src}/generators/component/files/js/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/component/files/js/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/component/files/ts/__fileName__.__ext__ +0 -0
- /package/{src → dist/src}/generators/component/files/ts/__fileName__.spec.__ext__ +0 -0
- /package/{src → dist/src}/generators/component/lib/add-import.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-build-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-export-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-generic-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-install-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-prebuild-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-run-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-serve-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-start-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/process-submit-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
- /package/{src → dist/src}/generators/init/lib/add-git-ignore-entry.js +0 -0
- /package/{src → dist/src}/generators/init/lib/gitignore-entries.js +0 -0
- /package/{src → dist/src}/generators/library/files/lib/.babelrc.js.template +0 -0
- /package/{src → dist/src}/generators/library/files/lib/README.md +0 -0
- /package/{src → dist/src}/generators/library/files/lib/src/index.ts.template +0 -0
- /package/{src → dist/src}/generators/library/files/lib/tsconfig.json.template +0 -0
- /package/{src → dist/src}/generators/library/files/lib/tsconfig.lib.json.template +0 -0
- /package/{src → dist/src}/generators/library/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/schema.json +0 -0
- /package/{src → dist/src}/migrations/update-21-4-0/add-jest-resolver.js +0 -0
- /package/{src → dist/src}/migrations/update-21-4-0/remove-deprecated-deps.js +0 -0
- /package/{src → dist/src}/migrations/update-21-4-0/update-splash-screen-config.js +0 -0
- /package/{src → dist/src}/migrations/update-22-2-0/add-expo-system-ui.js +0 -0
- /package/{src/migrations/update-22-2-0/files → dist/src/migrations/update-22-2-0}/ai-instructions-for-expo-54.md +0 -0
- /package/{src → dist/src}/migrations/update-22-2-0/update-jest-for-expo-54.js +0 -0
- /package/{src → dist/src}/utils/ensure-node-modules-symlink.js +0 -0
- /package/{src → dist/src}/utils/find-all-npm-dependencies.js +0 -0
- /package/{src → dist/src}/utils/has-expo-plugin.js +0 -0
- /package/{src → dist/src}/utils/init-root-babel-config.js +0 -0
- /package/{src → dist/src}/utils/jest/files/jest.resolver.js +0 -0
- /package/{src → dist/src}/utils/pod-install-task.js +0 -0
- /package/{src → dist/src}/utils/resolve-eas.js +0 -0
- /package/{src → dist/src}/utils/update-tsconfig-files.js +0 -0
|
@@ -3,4 +3,3 @@ export { expoApplicationGenerator } from './src/generators/application/applicati
|
|
|
3
3
|
export { expoLibraryGenerator } from './src/generators/library/library';
|
|
4
4
|
export { expoComponentGenerator } from './src/generators/component/component';
|
|
5
5
|
export { withNxMetro } from './plugins/with-nx-metro';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getResolveRequest = getResolveRequest;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const tsconfig_paths_1 = require("tsconfig-paths");
|
|
6
|
-
const
|
|
6
|
+
const js_1 = require("@nx/js");
|
|
7
7
|
const pc = tslib_1.__importStar(require("picocolors"));
|
|
8
8
|
const enhanced_resolve_1 = require("enhanced-resolve");
|
|
9
9
|
const path_1 = require("path");
|
|
@@ -120,7 +120,7 @@ function getMatcher(debug) {
|
|
|
120
120
|
if (!matcher) {
|
|
121
121
|
const result = (0, tsconfig_paths_1.loadConfig)();
|
|
122
122
|
if (result.resultType === 'success') {
|
|
123
|
-
absoluteBaseUrl = (0,
|
|
123
|
+
absoluteBaseUrl = (0, js_1.resolvePathsBaseUrl)(result.configFileAbsolutePath);
|
|
124
124
|
paths = result.paths;
|
|
125
125
|
if (debug) {
|
|
126
126
|
console.log(pc.cyan(`[Nx] Located tsconfig at ${pc.bold(absoluteBaseUrl)}`));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateNodes } from '@nx/devkit';
|
|
2
2
|
export interface ExpoPluginOptions {
|
|
3
3
|
startTargetName?: string;
|
|
4
4
|
serveTargetName?: string;
|
|
@@ -12,6 +12,5 @@ export interface ExpoPluginOptions {
|
|
|
12
12
|
buildDepsTargetName?: string;
|
|
13
13
|
watchDepsTargetName?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const createNodes:
|
|
16
|
-
export declare const createNodesV2:
|
|
17
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
15
|
+
export declare const createNodes: CreateNodes<ExpoPluginOptions>;
|
|
16
|
+
export declare const createNodesV2: CreateNodes<ExpoPluginOptions>;
|
|
@@ -1,71 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const path_1 = require("path");
|
|
6
7
|
const js_1 = require("@nx/js");
|
|
7
|
-
const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
|
-
const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculate-hash-for-create-nodes");
|
|
10
9
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
11
10
|
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
12
|
-
const
|
|
13
|
-
const util_1 = require("@nx/js/src/plugins/typescript/util");
|
|
14
|
-
function readTargetsCache(cachePath) {
|
|
15
|
-
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
16
|
-
}
|
|
17
|
-
function writeTargetsToCache(cachePath, targetsCache) {
|
|
18
|
-
const oldCache = readTargetsCache(cachePath);
|
|
19
|
-
(0, devkit_1.writeJsonFile)(cachePath, {
|
|
20
|
-
...oldCache,
|
|
21
|
-
targetsCache,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
11
|
+
const internal_2 = require("@nx/js/internal");
|
|
24
12
|
exports.createNodes = [
|
|
25
13
|
'**/app.{json,config.js,config.ts}',
|
|
26
14
|
async (configFiles, options, context) => {
|
|
27
15
|
const optionsHash = (0, devkit_internals_1.hashObject)(options);
|
|
28
16
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `expo-${optionsHash}.hash`);
|
|
29
|
-
const targetsCache =
|
|
30
|
-
const
|
|
17
|
+
const targetsCache = new internal_1.PluginCache(cachePath);
|
|
18
|
+
const packageManager = (0, devkit_1.detectPackageManager)(context.workspaceRoot);
|
|
19
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)(packageManager);
|
|
20
|
+
const lockFileName = (0, js_1.getLockFileName)(packageManager);
|
|
21
|
+
const normalizedOptions = normalizeOptions(options);
|
|
31
22
|
try {
|
|
32
|
-
|
|
23
|
+
const { entries, preErrors } = await filterExpoConfigs(configFiles, context);
|
|
24
|
+
const projectHashes = await (0, internal_1.calculateHashesForCreateNodes)(entries.map((e) => e.projectRoot), normalizedOptions, context, entries.map(() => [lockFileName]));
|
|
25
|
+
let results = [];
|
|
26
|
+
let nodeErrors = [];
|
|
27
|
+
try {
|
|
28
|
+
results = await (0, devkit_1.createNodesFromFiles)((configFile, _, ctx, idx) => createNodesInternal(configFile, normalizedOptions, ctx, targetsCache, pmc, projectHashes[idx]), entries.map((e) => e.configFile), options, context);
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
if (e instanceof devkit_1.AggregateCreateNodesError) {
|
|
32
|
+
results = e.partialResults ?? [];
|
|
33
|
+
nodeErrors = e.errors;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw e;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const allErrors = [...preErrors, ...nodeErrors];
|
|
40
|
+
if (allErrors.length > 0) {
|
|
41
|
+
throw new devkit_1.AggregateCreateNodesError(allErrors, results);
|
|
42
|
+
}
|
|
43
|
+
return results;
|
|
33
44
|
}
|
|
34
45
|
finally {
|
|
35
|
-
|
|
46
|
+
targetsCache.writeToDisk();
|
|
36
47
|
}
|
|
37
48
|
},
|
|
38
49
|
];
|
|
39
50
|
exports.createNodesV2 = exports.createNodes;
|
|
40
|
-
async function createNodesInternal(configFile, options, context, targetsCache, pmc) {
|
|
41
|
-
options = normalizeOptions(options);
|
|
51
|
+
async function createNodesInternal(configFile, options, context, targetsCache, pmc, hash) {
|
|
42
52
|
const projectRoot = (0, path_1.dirname)(configFile);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (!siblingFiles.includes('package.json') ||
|
|
46
|
-
!siblingFiles.includes('metro.config.js')) {
|
|
47
|
-
return {};
|
|
48
|
-
}
|
|
49
|
-
// Check if it's an Expo project
|
|
50
|
-
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, projectRoot, 'package.json'));
|
|
51
|
-
const appConfig = await getAppConfig(configFile, context);
|
|
52
|
-
if (!appConfig.expo &&
|
|
53
|
-
!packageJson.dependencies?.['expo'] &&
|
|
54
|
-
!packageJson.devDependencies?.['expo']) {
|
|
55
|
-
return {};
|
|
53
|
+
if (!targetsCache.has(hash)) {
|
|
54
|
+
targetsCache.set(hash, buildExpoTargets(projectRoot, options, context, pmc));
|
|
56
55
|
}
|
|
57
|
-
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
58
|
-
targetsCache[hash] ??= buildExpoTargets(projectRoot, options, context, pmc);
|
|
59
56
|
return {
|
|
60
57
|
projects: {
|
|
61
58
|
[projectRoot]: {
|
|
62
|
-
targets: targetsCache
|
|
59
|
+
targets: targetsCache.get(hash),
|
|
63
60
|
},
|
|
64
61
|
},
|
|
65
62
|
};
|
|
66
63
|
}
|
|
67
64
|
function buildExpoTargets(projectRoot, options, context, pmc) {
|
|
68
|
-
const namedInputs = (0,
|
|
65
|
+
const namedInputs = (0, internal_1.getNamedInputs)(projectRoot, context);
|
|
69
66
|
const targets = {
|
|
70
67
|
[options.startTargetName]: {
|
|
71
68
|
executor: `@nx/expo:start`,
|
|
@@ -96,24 +93,56 @@ function buildExpoTargets(projectRoot, options, context, pmc) {
|
|
|
96
93
|
},
|
|
97
94
|
[options.installTargetName]: {
|
|
98
95
|
executor: '@nx/expo:install',
|
|
96
|
+
continuous: false,
|
|
99
97
|
},
|
|
100
98
|
[options.prebuildTargetName]: {
|
|
101
99
|
executor: `@nx/expo:prebuild`,
|
|
100
|
+
continuous: false,
|
|
102
101
|
},
|
|
103
102
|
[options.buildTargetName]: {
|
|
104
103
|
executor: `@nx/expo:build`,
|
|
104
|
+
continuous: false,
|
|
105
105
|
},
|
|
106
106
|
[options.submitTargetName]: {
|
|
107
107
|
command: `eas submit`,
|
|
108
108
|
options: { cwd: projectRoot },
|
|
109
109
|
},
|
|
110
110
|
};
|
|
111
|
-
(0,
|
|
111
|
+
(0, internal_2.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
|
|
112
112
|
return targets;
|
|
113
113
|
}
|
|
114
114
|
function getAppConfig(configFilePath, context) {
|
|
115
115
|
const resolvedPath = (0, path_1.join)(context.workspaceRoot, configFilePath);
|
|
116
|
-
return (0,
|
|
116
|
+
return (0, internal_1.loadConfigFile)(resolvedPath);
|
|
117
|
+
}
|
|
118
|
+
async function filterExpoConfigs(configFiles, context) {
|
|
119
|
+
const preErrors = [];
|
|
120
|
+
const candidates = await Promise.all(configFiles.map(async (configFile) => {
|
|
121
|
+
try {
|
|
122
|
+
const projectRoot = (0, path_1.dirname)(configFile);
|
|
123
|
+
const siblingFiles = (0, fs_1.readdirSync)((0, path_1.join)(context.workspaceRoot, projectRoot));
|
|
124
|
+
if (!siblingFiles.includes('package.json') ||
|
|
125
|
+
!siblingFiles.includes('metro.config.js')) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, projectRoot, 'package.json'));
|
|
129
|
+
const appConfig = await getAppConfig(configFile, context);
|
|
130
|
+
if (!appConfig.expo &&
|
|
131
|
+
!packageJson.dependencies?.['expo'] &&
|
|
132
|
+
!packageJson.devDependencies?.['expo']) {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
return { configFile, projectRoot };
|
|
136
|
+
}
|
|
137
|
+
catch (e) {
|
|
138
|
+
preErrors.push([configFile, e]);
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
}));
|
|
142
|
+
return {
|
|
143
|
+
entries: candidates.filter((c) => c !== null),
|
|
144
|
+
preErrors,
|
|
145
|
+
};
|
|
117
146
|
}
|
|
118
147
|
function getInputs(namedInputs) {
|
|
119
148
|
return [
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<p style="text-align: center;">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
|
|
4
|
+
<img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
{{links}}
|
|
9
|
+
|
|
10
|
+
<hr>
|
|
11
|
+
|
|
12
|
+
# Nx: Smart Monorepos · Fast Builds
|
|
13
|
+
|
|
14
|
+
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
|
|
15
|
+
|
|
16
|
+
This package is a [Expo plugin for Nx](https://nx.dev/expo/overview).
|
|
17
|
+
|
|
18
|
+
{{content}}
|
|
@@ -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",
|
|
@@ -5,4 +5,3 @@ export interface ReactNativeBuildListOutput {
|
|
|
5
5
|
}
|
|
6
6
|
export default function buildListExecutor(options: ExpoEasBuildListOptions, context: ExecutorContext): AsyncGenerator<ReactNativeBuildListOutput>;
|
|
7
7
|
export declare function runCliBuildList(workspaceRoot: string, projectRoot: string, options: ExpoEasBuildListOptions): Promise<string>;
|
|
8
|
-
//# sourceMappingURL=build-list.impl.d.ts.map
|
|
@@ -7,4 +7,3 @@ export interface ExpoEnsureSymlinkOutput {
|
|
|
7
7
|
* @deprecated It is no longer needed for react native 73.
|
|
8
8
|
*/
|
|
9
9
|
export default function ensureSymlinkExecutor(_: any, context: ExecutorContext): AsyncGenerator<ExpoEnsureSymlinkOutput>;
|
|
10
|
-
//# sourceMappingURL=ensure-symlink.impl.d.ts.map
|
|
@@ -5,4 +5,3 @@ export interface ExpoExportOutput {
|
|
|
5
5
|
}
|
|
6
6
|
export default function exportExecutor(options: ExportExecutorSchema, context: ExecutorContext): AsyncGenerator<ExpoExportOutput>;
|
|
7
7
|
export declare function createExportOptions(options: ExportExecutorSchema, projectRoot: string): any[];
|
|
8
|
-
//# sourceMappingURL=export.impl.d.ts.map
|
|
@@ -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",
|
|
@@ -5,4 +5,3 @@ export interface ExpoInstallOutput {
|
|
|
5
5
|
}
|
|
6
6
|
export default function installExecutor(options: ExpoInstallOptions, context: ExecutorContext): AsyncGenerator<ExpoInstallOutput>;
|
|
7
7
|
export declare function installAndUpdatePackageJson(context: ExecutorContext, options: ExpoInstallOptions): Promise<void>;
|
|
8
|
-
//# sourceMappingURL=install.impl.d.ts.map
|
|
@@ -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",
|
|
@@ -5,4 +5,3 @@ export interface ExpoPrebuildOutput {
|
|
|
5
5
|
}
|
|
6
6
|
export default function prebuildExecutor(options: ExpoPrebuildOptions, context: ExecutorContext): AsyncGenerator<ExpoPrebuildOutput>;
|
|
7
7
|
export declare function prebuildAsync(workspaceRoot: string, projectRoot: string, options: ExpoPrebuildOptions): Promise<number>;
|
|
8
|
-
//# sourceMappingURL=prebuild.impl.d.ts.map
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -8,4 +8,3 @@ export interface ExpoServeOutput {
|
|
|
8
8
|
}
|
|
9
9
|
export default function serveExecutor(options: ExpoServeExecutorSchema, context: ExecutorContext): AsyncGenerator<ExpoServeOutput>;
|
|
10
10
|
export declare function runCliServe(workspaceRoot: string, projectRoot: string, options: ExpoServeExecutorSchema): Promise<ChildProcess>;
|
|
11
|
-
//# sourceMappingURL=serve.impl.d.ts.map
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -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);
|
|
@@ -7,4 +7,3 @@ export interface ReactNativeSyncDepsOutput {
|
|
|
7
7
|
export default function syncDepsExecutor(options: ExpoSyncDepsOptions, context: ExecutorContext): AsyncGenerator<ReactNativeSyncDepsOutput>;
|
|
8
8
|
export declare function syncDeps(projectName: string, projectPackageJson: PackageJson, projectPackageJsonPath: string, workspacePackageJson: PackageJson, projectGraph?: ProjectGraph, include?: string[], exclude?: string[], all?: boolean, excludeImplicit?: boolean): Promise<string[]>;
|
|
9
9
|
export declare function displayNewlyAddedDepsMessage(projectName: string, deps: string[]): void;
|
|
10
|
-
//# sourceMappingURL=sync-deps.impl.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { Schema } from './schema';
|
|
|
3
3
|
export declare function expoApplicationGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function expoApplicationGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
5
5
|
export default expoApplicationGenerator;
|
|
6
|
-
//# sourceMappingURL=application.d.ts.map
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.expoApplicationGenerator = expoApplicationGenerator;
|
|
4
4
|
exports.expoApplicationGeneratorInternal = expoApplicationGeneratorInternal;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
7
8
|
const js_1 = require("@nx/js");
|
|
8
|
-
const
|
|
9
|
+
const internal_2 = require("@nx/js/internal");
|
|
9
10
|
const add_linting_1 = require("../../utils/add-linting");
|
|
10
11
|
const add_jest_1 = require("../../utils/jest/add-jest");
|
|
11
12
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
@@ -16,8 +17,7 @@ const add_eas_scripts_1 = require("./lib/add-eas-scripts");
|
|
|
16
17
|
const add_e2e_1 = require("./lib/add-e2e");
|
|
17
18
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
18
19
|
const init_root_babel_config_1 = require("../../utils/init-root-babel-config");
|
|
19
|
-
const
|
|
20
|
-
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
20
|
+
const versions_1 = require("../../utils/versions");
|
|
21
21
|
async function expoApplicationGenerator(host, schema) {
|
|
22
22
|
return await expoApplicationGeneratorInternal(host, {
|
|
23
23
|
addPlugin: false,
|
|
@@ -26,8 +26,9 @@ async function expoApplicationGenerator(host, schema) {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
async function expoApplicationGeneratorInternal(host, schema) {
|
|
29
|
+
(0, versions_1.assertSupportedExpoVersion)(host);
|
|
29
30
|
const tasks = [];
|
|
30
|
-
const addTsPlugin = (0,
|
|
31
|
+
const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(host, schema.addPlugin, schema.useTsSolution);
|
|
31
32
|
const jsInitTask = await (0, js_1.initGenerator)(host, {
|
|
32
33
|
...schema,
|
|
33
34
|
skipFormat: true,
|
|
@@ -48,7 +49,7 @@ async function expoApplicationGeneratorInternal(host, schema) {
|
|
|
48
49
|
// If we are using the new TS solution
|
|
49
50
|
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
50
51
|
if (options.isTsSolutionSetup) {
|
|
51
|
-
await (0,
|
|
52
|
+
await (0, internal_2.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
|
|
52
53
|
}
|
|
53
54
|
const lintTask = await (0, add_linting_1.addLinting)(host, {
|
|
54
55
|
...options,
|
|
@@ -63,7 +64,7 @@ async function expoApplicationGeneratorInternal(host, schema) {
|
|
|
63
64
|
const e2eTask = await (0, add_e2e_1.addE2e)(host, options);
|
|
64
65
|
tasks.push(e2eTask);
|
|
65
66
|
(0, add_eas_scripts_1.addEasScripts)(host);
|
|
66
|
-
(0,
|
|
67
|
+
(0, internal_2.updateTsconfigFiles)(host, options.appProjectRoot, 'tsconfig.app.json', {
|
|
67
68
|
jsx: 'react-jsx',
|
|
68
69
|
module: 'esnext',
|
|
69
70
|
moduleResolution: 'bundler',
|
|
@@ -71,12 +72,12 @@ async function expoApplicationGeneratorInternal(host, schema) {
|
|
|
71
72
|
}, options.linter === 'eslint'
|
|
72
73
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
73
74
|
: undefined);
|
|
74
|
-
(0,
|
|
75
|
+
(0, internal_2.sortPackageJsonFields)(host, options.appProjectRoot);
|
|
75
76
|
if (!options.skipFormat) {
|
|
76
77
|
await (0, devkit_1.formatFiles)(host);
|
|
77
78
|
}
|
|
78
79
|
tasks.push(() => {
|
|
79
|
-
(0,
|
|
80
|
+
(0, internal_1.logShowProjectCommand)(options.projectName);
|
|
80
81
|
});
|
|
81
82
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
82
83
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addE2e = addE2e;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
|
|
6
6
|
const has_expo_plugin_1 = require("../../../utils/has-expo-plugin");
|
|
7
7
|
const versions_1 = require("../../../utils/versions");
|
|
8
8
|
async function addE2e(tree, options) {
|
|
@@ -122,11 +122,11 @@ async function addE2e(tree, options) {
|
|
|
122
122
|
async function getExpoE2EWebServerInfo(tree, projectName, configFilePath, isPluginBeingAdded) {
|
|
123
123
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
124
124
|
let e2ePort = isPluginBeingAdded ? 8081 : 4200;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
e2ePort =
|
|
125
|
+
const serveTargetOptions = (0, internal_1.readTargetDefaultsForTarget)('serve', nxJson.targetDefaults)?.options;
|
|
126
|
+
if (serveTargetOptions?.port) {
|
|
127
|
+
e2ePort = serveTargetOptions.port;
|
|
128
128
|
}
|
|
129
|
-
return (0,
|
|
129
|
+
return (0, internal_1.getE2EWebServerInfo)(tree, projectName, {
|
|
130
130
|
plugin: '@nx/expo/plugin',
|
|
131
131
|
serveTargetName: 'serveTargetName',
|
|
132
132
|
serveStaticTargetName: 'serveTargetName',
|