@nx/react-native 23.0.0-beta.23 → 23.0.0-beta.25
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}/plugin.d.ts +0 -1
- package/{plugins → dist/plugins}/with-nx-metro.d.ts +0 -1
- package/dist/readme-template.md +18 -0
- package/{src → dist/src}/executors/build-android/build-android.impl.d.ts +0 -1
- package/{src → dist/src}/executors/build-ios/build-ios.impl.d.ts +0 -1
- package/{src → dist/src}/executors/bundle/bundle.impl.d.ts +0 -1
- package/{src → dist/src}/executors/ensure-symlink/ensure-symlink.impl.d.ts +0 -1
- package/{src → dist/src}/executors/pod-install/pod-install.impl.d.ts +0 -1
- package/{src → dist/src}/executors/run-android/run-android.impl.d.ts +0 -1
- package/{src → dist/src}/executors/run-ios/run-ios.impl.d.ts +0 -1
- package/{src → dist/src}/executors/start/lib/is-packager-running.d.ts +0 -1
- package/{src → dist/src}/executors/start/start.impl.d.ts +0 -1
- package/{src → dist/src}/executors/storybook/storybook.impl.d.ts +0 -1
- package/{src → dist/src}/executors/sync-deps/sync-deps.impl.d.ts +0 -1
- package/{src → dist/src}/executors/upgrade/upgrade.impl.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.js +2 -0
- package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-e2e.js +3 -3
- package/{src → dist/src}/generators/application/lib/add-project.d.ts +0 -1
- 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/component/component.d.ts +0 -1
- package/{src → dist/src}/generators/component/component.js +2 -0
- package/{src → dist/src}/generators/component/lib/add-import.d.ts +0 -1
- package/{src → dist/src}/generators/component/lib/normalize-options.d.ts +0 -1
- 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 +2 -0
- package/{src → dist/src}/generators/convert-to-inferred/lib/create-process-options.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/lib/post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/lib/process-start-options.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +6 -4
- 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/library.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.js +6 -4
- package/{src → dist/src}/generators/web-configuration/lib/normalize-schema.d.ts +0 -1
- package/{src → dist/src}/generators/web-configuration/lib/webpack-targets.d.ts +0 -1
- package/{src → dist/src}/generators/web-configuration/web-configuration.d.ts +0 -1
- package/{src → dist/src}/generators/web-configuration/web-configuration.js +7 -39
- 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/upgrade-react-native-projects.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 +136 -0
- package/{src → dist/src}/utils/add-jest.d.ts +2 -3
- package/{src → dist/src}/utils/add-linting.d.ts +0 -1
- package/{src → dist/src}/utils/add-linting.js +2 -2
- package/{src → dist/src}/utils/chmod-android-gradle-files.d.ts +0 -1
- package/{src → dist/src}/utils/deprecation.d.ts +0 -1
- package/{src → dist/src}/utils/ensure-dependencies.d.ts +0 -1
- package/dist/src/utils/ensure-dependencies.js +34 -0
- package/{src → dist/src}/utils/ensure-node-modules-symlink.d.ts +0 -1
- package/{src → dist/src}/utils/find-all-npm-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/get-cli-options.d.ts +0 -1
- package/{src → dist/src}/utils/pod-install-task.d.ts +0 -1
- package/{src → dist/src}/utils/react-native-project-detection.d.ts +0 -1
- package/{src → dist/src}/utils/testing-generators.d.ts +0 -1
- package/dist/src/utils/versions.d.ts +33 -0
- package/dist/src/utils/versions.js +73 -0
- package/dist/typings/svg.d.ts +7 -0
- package/executors.json +22 -22
- package/generators.json +12 -12
- package/migrations.json +48 -36
- package/package.json +84 -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-android/build-android.impl.d.ts.map +0 -1
- package/src/executors/build-ios/build-ios.impl.d.ts.map +0 -1
- package/src/executors/bundle/bundle.impl.d.ts.map +0 -1
- package/src/executors/ensure-symlink/ensure-symlink.impl.d.ts.map +0 -1
- package/src/executors/pod-install/pod-install.impl.d.ts.map +0 -1
- package/src/executors/run-android/run-android.impl.d.ts.map +0 -1
- package/src/executors/run-ios/run-ios.impl.d.ts.map +0 -1
- package/src/executors/start/lib/is-packager-running.d.ts.map +0 -1
- package/src/executors/start/start.impl.d.ts.map +0 -1
- package/src/executors/storybook/storybook.impl.d.ts.map +0 -1
- package/src/executors/sync-deps/sync-deps.impl.d.ts.map +0 -1
- package/src/executors/upgrade/upgrade.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-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/create-process-options.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-start-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/generators/web-configuration/lib/normalize-schema.d.ts.map +0 -1
- package/src/generators/web-configuration/lib/webpack-targets.d.ts.map +0 -1
- package/src/generators/web-configuration/web-configuration.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/upgrade-react-native-projects.d.ts.map +0 -1
- package/src/utils/add-jest.d.ts.map +0 -1
- package/src/utils/add-linting.d.ts.map +0 -1
- package/src/utils/chmod-android-gradle-files.d.ts.map +0 -1
- package/src/utils/deprecation.d.ts.map +0 -1
- package/src/utils/ensure-dependencies.d.ts.map +0 -1
- package/src/utils/ensure-dependencies.js +0 -33
- package/src/utils/ensure-node-modules-symlink.d.ts.map +0 -1
- package/src/utils/find-all-npm-dependencies.d.ts.map +0 -1
- package/src/utils/get-cli-options.d.ts.map +0 -1
- package/src/utils/pod-install-task.d.ts.map +0 -1
- package/src/utils/react-native-project-detection.d.ts.map +0 -1
- package/src/utils/testing-generators.d.ts.map +0 -1
- package/src/utils/versions.d.ts +0 -21
- package/src/utils/versions.d.ts.map +0 -1
- package/src/utils/versions.js +0 -23
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{plugin.js → dist/plugin.js} +0 -0
- /package/{plugins → dist/plugins}/metro-resolver.js +0 -0
- /package/{plugins → dist/plugins}/plugin.js +0 -0
- /package/{plugins → dist/plugins}/with-nx-metro.js +0 -0
- /package/{src → dist/src}/executors/build-android/build-android.impl.js +0 -0
- /package/{src → dist/src}/executors/build-android/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/build-android/schema.json +0 -0
- /package/{src → dist/src}/executors/build-ios/build-ios.impl.js +0 -0
- /package/{src → dist/src}/executors/build-ios/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/build-ios/schema.json +0 -0
- /package/{src → dist/src}/executors/bundle/bundle.impl.js +0 -0
- /package/{src → dist/src}/executors/bundle/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/bundle/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/pod-install/pod-install.impl.js +0 -0
- /package/{src → dist/src}/executors/pod-install/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/pod-install/schema.json +0 -0
- /package/{src → dist/src}/executors/run-android/run-android.impl.js +0 -0
- /package/{src → dist/src}/executors/run-android/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/run-android/schema.json +0 -0
- /package/{src → dist/src}/executors/run-ios/run-ios.impl.js +0 -0
- /package/{src → dist/src}/executors/run-ios/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/run-ios/schema.json +0 -0
- /package/{src → dist/src}/executors/start/lib/is-packager-running.js +0 -0
- /package/{src → dist/src}/executors/start/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/start/schema.json +0 -0
- /package/{src → dist/src}/executors/start/start.impl.js +0 -0
- /package/{src → dist/src}/executors/storybook/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/storybook/schema.json +0 -0
- /package/{src → dist/src}/executors/storybook/storybook.impl.js +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/upgrade/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/upgrade/schema.json +0 -0
- /package/{src → dist/src}/executors/upgrade/upgrade.impl.js +0 -0
- /package/{src → dist/src}/generators/application/files/app/.babelrc.js.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/Gemfile.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/build.gradle.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/debug.keystore +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/proguard-rules.pro +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/debug/AndroidManifest.xml.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/AndroidManifest.xml.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/java/com/__lowerCaseName__/MainActivity.kt.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/java/com/__lowerCaseName__/MainApplication.kt.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/values/strings.xml.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/app/src/main/res/values/styles.xml +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/build.gradle.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.properties +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/gradle.properties +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/gradlew.bat +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/gradlew.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/android/settings.gradle.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/app.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/.xcode.env.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/Podfile.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__/AppDelegate.swift.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__/Images.xcassets/Contents.json +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__/Info.plist.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__/LaunchScreen.storyboard.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__/PrivacyInfo.xcprivacy +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__.xcodeproj/project.pbxproj.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__.xcodeproj/xcshareddata/xcschemes/__className__.xcscheme.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/ios/__className__.xcworkspace/contents.xcworkspacedata +0 -0
- /package/{src → dist/src}/generators/application/files/app/metro.config.js.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/package.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/src/app/App.spec.tsx.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/src/main.tsx.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/tsconfig.app.json.template +0 -0
- /package/{src → dist/src}/generators/application/files/app/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-project.js +0 -0
- /package/{src → dist/src}/generators/application/lib/create-application-files.js +0 -0
- /package/{src → dist/src}/generators/application/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/application/schema.json +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/component/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/component/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/component/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/create-process-options.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/post-target-transformer.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/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/lib/normalize-options.js +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}/generators/web-configuration/files/base-vite/.babelrc.js.template +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-vite/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-vite/public/favicon.ico +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-vite/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-vite/src/main-web.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-vite/vite.config.mts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-webpack/.babelrc.js.template +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-webpack/src/assets/.gitkeep +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-webpack/src/favicon.ico +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-webpack/src/index.html__tmpl__ +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-webpack/src/main-web.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/web-configuration/files/base-webpack/webpack.config.js__tmpl__ +0 -0
- /package/{src → dist/src}/generators/web-configuration/lib/normalize-schema.js +0 -0
- /package/{src → dist/src}/generators/web-configuration/lib/webpack-targets.js +0 -0
- /package/{src → dist/src}/generators/web-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/web-configuration/schema.json +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/upgrade-react-native-projects.js +0 -0
- /package/{src → dist/src}/utils/add-jest.js +0 -0
- /package/{src → dist/src}/utils/chmod-android-gradle-files.js +0 -0
- /package/{src → dist/src}/utils/deprecation.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/get-cli-options.js +0 -0
- /package/{src → dist/src}/utils/pod-install-task.js +0 -0
- /package/{src → dist/src}/utils/react-native-project-detection.js +0 -0
- /package/{src → dist/src}/utils/testing-generators.js +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = migrateCreateNodesV2ToCreateNodes;
|
|
4
|
+
exports.rewriteCreateNodesV2Imports = rewriteCreateNodesV2Imports;
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
|
|
7
|
+
const DEPRECATED_NAME = 'createNodesV2';
|
|
8
|
+
const CANONICAL_NAME = 'createNodes';
|
|
9
|
+
// Module specifiers from which `@nx/react-native` publicly exposes `createNodesV2`.
|
|
10
|
+
// A named import or re-export of `createNodesV2` from one of these is rewritten
|
|
11
|
+
// to the canonical `createNodes` export.
|
|
12
|
+
const TARGET_SPECIFIERS = new Set([
|
|
13
|
+
'@nx/react-native/plugin',
|
|
14
|
+
]);
|
|
15
|
+
let ts;
|
|
16
|
+
async function migrateCreateNodesV2ToCreateNodes(tree) {
|
|
17
|
+
let touchedCount = 0;
|
|
18
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
|
|
19
|
+
if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const original = tree.read(filePath, 'utf-8');
|
|
23
|
+
if (!original || !original.includes(DEPRECATED_NAME)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const updated = rewriteCreateNodesV2Imports(original, TARGET_SPECIFIERS);
|
|
27
|
+
if (updated !== original) {
|
|
28
|
+
tree.write(filePath, updated);
|
|
29
|
+
touchedCount += 1;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
if (touchedCount > 0) {
|
|
33
|
+
devkit_1.logger.info(`Renamed \`${DEPRECATED_NAME}\` imports to \`${CANONICAL_NAME}\` in ${touchedCount} file(s).`);
|
|
34
|
+
}
|
|
35
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
|
|
39
|
+
* when they come from one of the given module specifiers. Only the named
|
|
40
|
+
* bindings are touched — the module specifier, the `import`/`export` keyword,
|
|
41
|
+
* any `type` modifier, and any default import are left untouched.
|
|
42
|
+
*/
|
|
43
|
+
function rewriteCreateNodesV2Imports(source, specifiers) {
|
|
44
|
+
ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
|
|
45
|
+
const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
|
|
46
|
+
/* setParentNodes */ true, ts.ScriptKind.TSX);
|
|
47
|
+
const changes = [];
|
|
48
|
+
for (const stmt of sourceFile.statements) {
|
|
49
|
+
if (ts.isImportDeclaration(stmt)) {
|
|
50
|
+
collectImportRewrite(sourceFile, stmt, specifiers, changes);
|
|
51
|
+
}
|
|
52
|
+
else if (ts.isExportDeclaration(stmt)) {
|
|
53
|
+
collectExportRewrite(sourceFile, stmt, specifiers, changes);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
|
|
57
|
+
}
|
|
58
|
+
function isTargetSpecifier(node, specifiers) {
|
|
59
|
+
return ts.isStringLiteral(node) && specifiers.has(node.text);
|
|
60
|
+
}
|
|
61
|
+
function collectImportRewrite(sourceFile, stmt, specifiers, changes) {
|
|
62
|
+
if (!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const namedBindings = stmt.importClause?.namedBindings;
|
|
66
|
+
// Only `import { ... }` carries renameable named bindings. `import x`,
|
|
67
|
+
// `import * as ns`, and side-effect imports reference the module wholesale
|
|
68
|
+
// and keep working through the `createNodesV2` runtime alias, so we leave
|
|
69
|
+
// them be. A mixed `import def, { createNodesV2 }` still has its named
|
|
70
|
+
// bindings rewritten below — the default binding is untouched.
|
|
71
|
+
if (!namedBindings || !ts.isNamedImports(namedBindings)) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
rewriteNamedBindings(sourceFile, namedBindings, changes);
|
|
75
|
+
}
|
|
76
|
+
function collectExportRewrite(sourceFile, stmt, specifiers, changes) {
|
|
77
|
+
if (!stmt.moduleSpecifier ||
|
|
78
|
+
!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
// `export { ... } from '...'` can be rewritten; `export * from '...'` has no
|
|
82
|
+
// named bindings to rename.
|
|
83
|
+
if (!stmt.exportClause || !ts.isNamedExports(stmt.exportClause)) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
rewriteNamedBindings(sourceFile, stmt.exportClause, changes);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Re-renders the `{ ... }` of a named import/export, renaming any
|
|
90
|
+
* `createNodesV2` specifier to `createNodes`. If renaming would collide with a
|
|
91
|
+
* `createNodes` that is already present (e.g. `{ createNodes, createNodesV2 }`),
|
|
92
|
+
* the duplicate is dropped. Returns without recording a change when the binding
|
|
93
|
+
* list contains no `createNodesV2`.
|
|
94
|
+
*/
|
|
95
|
+
function rewriteNamedBindings(sourceFile, namedBindings, changes) {
|
|
96
|
+
const elements = namedBindings.elements;
|
|
97
|
+
const hasDeprecated = elements.some((el) => (el.propertyName ?? el.name).text === DEPRECATED_NAME);
|
|
98
|
+
if (!hasDeprecated) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const seen = new Set();
|
|
102
|
+
const rendered = [];
|
|
103
|
+
for (const el of elements) {
|
|
104
|
+
const text = renderSpecifier(el);
|
|
105
|
+
if (!seen.has(text)) {
|
|
106
|
+
seen.add(text);
|
|
107
|
+
rendered.push(text);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const start = namedBindings.getStart(sourceFile);
|
|
111
|
+
changes.push({
|
|
112
|
+
type: devkit_1.ChangeType.Delete,
|
|
113
|
+
start,
|
|
114
|
+
length: namedBindings.getEnd() - start,
|
|
115
|
+
}, {
|
|
116
|
+
type: devkit_1.ChangeType.Insert,
|
|
117
|
+
index: start,
|
|
118
|
+
text: `{ ${rendered.join(', ')} }`,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function renderSpecifier(el) {
|
|
122
|
+
const typePrefix = el.isTypeOnly ? 'type ' : '';
|
|
123
|
+
const rename = (name) => name === DEPRECATED_NAME ? CANONICAL_NAME : name;
|
|
124
|
+
// `{ name }` — no alias, so the local binding follows the rename.
|
|
125
|
+
if (!el.propertyName) {
|
|
126
|
+
return `${typePrefix}${rename(el.name.text)}`;
|
|
127
|
+
}
|
|
128
|
+
// `{ propertyName as name }` — only the imported (left) side is renamed; the
|
|
129
|
+
// local alias is preserved. A now-redundant alias such as
|
|
130
|
+
// `createNodesV2 as createNodes` collapses to `createNodes`.
|
|
131
|
+
const canonicalImported = rename(el.propertyName.text);
|
|
132
|
+
const localName = el.name.text;
|
|
133
|
+
return canonicalImported === localName
|
|
134
|
+
? `${typePrefix}${localName}`
|
|
135
|
+
: `${typePrefix}${canonicalImported} as ${localName}`;
|
|
136
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { Tree } from '@nx/devkit';
|
|
2
|
-
export declare function addJest(host: Tree, unitTestRunner: 'jest' | 'none', projectName: string, appProjectRoot: string, js: boolean, skipPackageJson: boolean, addPlugin: boolean, runtimeTsconfigFileName: string): Promise<
|
|
3
|
-
//# sourceMappingURL=add-jest.d.ts.map
|
|
1
|
+
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
|
+
export declare function addJest(host: Tree, unitTestRunner: 'jest' | 'none', projectName: string, appProjectRoot: string, js: boolean, skipPackageJson: boolean, addPlugin: boolean, runtimeTsconfigFileName: string): Promise<GeneratorCallback>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addLinting = addLinting;
|
|
4
4
|
const eslint_1 = require("@nx/eslint");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
6
|
+
const react_1 = require("@nx/react");
|
|
7
7
|
const internal_1 = require("@nx/eslint/internal");
|
|
8
8
|
async function addLinting(host, options) {
|
|
9
9
|
if (options.linter === 'none') {
|
|
@@ -70,7 +70,7 @@ async function addLinting(host, options) {
|
|
|
70
70
|
]);
|
|
71
71
|
}
|
|
72
72
|
if (!options.skipPackageJson) {
|
|
73
|
-
const installTask = (0, devkit_1.addDependenciesToPackageJson)(host,
|
|
73
|
+
const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, react_1.extraEslintDependencies.dependencies, react_1.extraEslintDependencies.devDependencies, undefined, true);
|
|
74
74
|
tasks.push(installTask);
|
|
75
75
|
}
|
|
76
76
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { GeneratorCallback } from '@nx/devkit';
|
|
2
2
|
export declare function chmodAndroidGradlewFiles(androidFolder: string): void;
|
|
3
3
|
export declare function chmodAndroidGradlewFilesTask(androidFolder: string): GeneratorCallback;
|
|
4
|
-
//# sourceMappingURL=chmod-android-gradle-files.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureDependencies = ensureDependencies;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const internal_1 = require("@nx/react/internal");
|
|
6
|
+
const versions_1 = require("./versions");
|
|
7
|
+
function ensureDependencies(tree, unitTestRunner) {
|
|
8
|
+
const isPnpm = (0, devkit_1.detectPackageManager)(tree.root) === 'pnpm';
|
|
9
|
+
const rnVersions = (0, versions_1.versions)(tree);
|
|
10
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
11
|
+
'@types/node': versions_1.typesNodeVersion,
|
|
12
|
+
'@types/react': versions_1.typesReactVersion,
|
|
13
|
+
'@react-native/babel-preset': rnVersions.reactNativeBabelPresetVersion,
|
|
14
|
+
'@react-native/metro-config': rnVersions.reactNativeMetroConfigVersion,
|
|
15
|
+
'@react-native-community/cli': rnVersions.reactNativeCommunityCliVersion,
|
|
16
|
+
'@react-native-community/cli-platform-android': rnVersions.reactNativeCommunityCliPlatformAndroidVersion,
|
|
17
|
+
'@react-native-community/cli-platform-ios': rnVersions.reactNativeCommunityCliPlatformIosVersion,
|
|
18
|
+
'react-native-svg-transformer': versions_1.reactNativeSvgTransformerVersion,
|
|
19
|
+
'react-native-svg': versions_1.reactNativeSvgVersion,
|
|
20
|
+
'@babel/preset-react': internal_1.babelPresetReactVersion,
|
|
21
|
+
'@babel/core': internal_1.babelCoreVersion,
|
|
22
|
+
...(unitTestRunner === 'jest'
|
|
23
|
+
? {
|
|
24
|
+
'@testing-library/react-native': versions_1.testingLibraryReactNativeVersion,
|
|
25
|
+
'react-test-renderer': versions_1.reactTestRendererVersion,
|
|
26
|
+
}
|
|
27
|
+
: {}),
|
|
28
|
+
...(isPnpm
|
|
29
|
+
? {
|
|
30
|
+
'@babel/runtime': versions_1.babelRuntimeVersion, // @babel/runtime is used by react-native-svg
|
|
31
|
+
}
|
|
32
|
+
: {}),
|
|
33
|
+
}, undefined, true);
|
|
34
|
+
}
|
|
@@ -12,4 +12,3 @@ export declare function isReactNativeProject(tree: Tree, projectRoot: string): P
|
|
|
12
12
|
* Gets all React Native projects in the workspace
|
|
13
13
|
*/
|
|
14
14
|
export declare function getAllReactNativeProjects(tree: Tree, projects: Map<string, any>): Promise<string[]>;
|
|
15
|
-
//# sourceMappingURL=react-native-project-detection.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Tree } from '@nx/devkit';
|
|
2
|
+
export declare const nxVersion: any;
|
|
3
|
+
export declare const minSupportedReactNativeVersion = "0.83.0";
|
|
4
|
+
export declare function assertSupportedReactNativeVersion(tree: Tree): void;
|
|
5
|
+
export declare const reactNativeVersion = "~0.84.1";
|
|
6
|
+
export declare const reactNativeBabelPresetVersion = "~0.84.1";
|
|
7
|
+
export declare const reactNativeMetroConfigVersion = "~0.84.1";
|
|
8
|
+
export declare const metroVersion = "~0.83.0";
|
|
9
|
+
export declare const reactNativeCommunityCliVersion = "~20.1.0";
|
|
10
|
+
export declare const reactNativeCommunityCliPlatformAndroidVersion = "~20.1.0";
|
|
11
|
+
export declare const reactNativeCommunityCliPlatformIosVersion = "~20.1.0";
|
|
12
|
+
export declare const typesNodeVersion = "^22.0.0";
|
|
13
|
+
export declare const reactNativeWebVersion = "~0.21.0";
|
|
14
|
+
export declare const reactVersion = "^19.2.0";
|
|
15
|
+
export declare const reactDomVersion = "^19.2.0";
|
|
16
|
+
export declare const typesReactVersion = "^19.2.0";
|
|
17
|
+
export declare const typesReactDomVersion = "^19.2.0";
|
|
18
|
+
export declare const testingLibraryReactNativeVersion = "~13.2.0";
|
|
19
|
+
export declare const reactTestRendererVersion = "^19.2.0";
|
|
20
|
+
export declare const reactNativeSvgTransformerVersion = "~1.5.1";
|
|
21
|
+
export declare const reactNativeSvgVersion = "~15.15.0";
|
|
22
|
+
export declare const reactNativeSvgWebVersion = "~1.0.9";
|
|
23
|
+
export declare const babelRuntimeVersion = "~7.27.6";
|
|
24
|
+
export type ReactNativeVersions = {
|
|
25
|
+
reactNativeVersion: string;
|
|
26
|
+
reactNativeBabelPresetVersion: string;
|
|
27
|
+
reactNativeMetroConfigVersion: string;
|
|
28
|
+
metroVersion: string;
|
|
29
|
+
reactNativeCommunityCliVersion: string;
|
|
30
|
+
reactNativeCommunityCliPlatformAndroidVersion: string;
|
|
31
|
+
reactNativeCommunityCliPlatformIosVersion: string;
|
|
32
|
+
};
|
|
33
|
+
export declare function versions(tree: Tree): ReactNativeVersions;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.babelRuntimeVersion = exports.reactNativeSvgWebVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactTestRendererVersion = exports.testingLibraryReactNativeVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactDomVersion = exports.reactVersion = exports.reactNativeWebVersion = exports.typesNodeVersion = exports.reactNativeCommunityCliPlatformIosVersion = exports.reactNativeCommunityCliPlatformAndroidVersion = exports.reactNativeCommunityCliVersion = exports.metroVersion = exports.reactNativeMetroConfigVersion = exports.reactNativeBabelPresetVersion = exports.reactNativeVersion = exports.minSupportedReactNativeVersion = exports.nxVersion = void 0;
|
|
4
|
+
exports.assertSupportedReactNativeVersion = assertSupportedReactNativeVersion;
|
|
5
|
+
exports.versions = versions;
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
8
|
+
const semver_1 = require("semver");
|
|
9
|
+
exports.nxVersion = require((0, path_1.join)('@nx/react-native', 'package.json')).version;
|
|
10
|
+
// React Native's tiered support policy lists 0.85 and 0.84 as Active and 0.83 as
|
|
11
|
+
// End-of-Cycle. The plugin supports the 0.83–0.84 window for now (0.85 is a
|
|
12
|
+
// follow-up — it relocated its Jest preset to @react-native/jest-preset, which
|
|
13
|
+
// needs a separate generator change). Below 0.83 generators throw via
|
|
14
|
+
// assertSupportedReactNativeVersion.
|
|
15
|
+
exports.minSupportedReactNativeVersion = '0.83.0';
|
|
16
|
+
function assertSupportedReactNativeVersion(tree) {
|
|
17
|
+
(0, internal_1.assertSupportedPackageVersion)(tree, 'react-native', exports.minSupportedReactNativeVersion);
|
|
18
|
+
}
|
|
19
|
+
// Fresh-install constants point at the latest supported minor (0.84, Active line).
|
|
20
|
+
exports.reactNativeVersion = '~0.84.1';
|
|
21
|
+
exports.reactNativeBabelPresetVersion = '~0.84.1';
|
|
22
|
+
exports.reactNativeMetroConfigVersion = '~0.84.1';
|
|
23
|
+
exports.metroVersion = '~0.83.0';
|
|
24
|
+
exports.reactNativeCommunityCliVersion = '~20.1.0';
|
|
25
|
+
exports.reactNativeCommunityCliPlatformAndroidVersion = '~20.1.0';
|
|
26
|
+
exports.reactNativeCommunityCliPlatformIosVersion = '~20.1.0';
|
|
27
|
+
// Stable across the supported RN minors (0.83 and 0.84 both ship React 19.2).
|
|
28
|
+
exports.typesNodeVersion = '^22.0.0';
|
|
29
|
+
exports.reactNativeWebVersion = '~0.21.0';
|
|
30
|
+
exports.reactVersion = '^19.2.0';
|
|
31
|
+
exports.reactDomVersion = '^19.2.0';
|
|
32
|
+
exports.typesReactVersion = '^19.2.0';
|
|
33
|
+
exports.typesReactDomVersion = '^19.2.0';
|
|
34
|
+
exports.testingLibraryReactNativeVersion = '~13.2.0';
|
|
35
|
+
exports.reactTestRendererVersion = '^19.2.0';
|
|
36
|
+
exports.reactNativeSvgTransformerVersion = '~1.5.1';
|
|
37
|
+
exports.reactNativeSvgVersion = '~15.15.0';
|
|
38
|
+
exports.reactNativeSvgWebVersion = '~1.0.9';
|
|
39
|
+
exports.babelRuntimeVersion = '~7.27.6';
|
|
40
|
+
// latestVersions reuses the top-level exports so `import { reactNativeVersion }`
|
|
41
|
+
// stays valid for the fresh-install path while versions(tree).reactNativeVersion
|
|
42
|
+
// is the route-aware value.
|
|
43
|
+
const latestVersions = {
|
|
44
|
+
reactNativeVersion: exports.reactNativeVersion,
|
|
45
|
+
reactNativeBabelPresetVersion: exports.reactNativeBabelPresetVersion,
|
|
46
|
+
reactNativeMetroConfigVersion: exports.reactNativeMetroConfigVersion,
|
|
47
|
+
metroVersion: exports.metroVersion,
|
|
48
|
+
reactNativeCommunityCliVersion: exports.reactNativeCommunityCliVersion,
|
|
49
|
+
reactNativeCommunityCliPlatformAndroidVersion: exports.reactNativeCommunityCliPlatformAndroidVersion,
|
|
50
|
+
reactNativeCommunityCliPlatformIosVersion: exports.reactNativeCommunityCliPlatformIosVersion,
|
|
51
|
+
};
|
|
52
|
+
// Keyed by React Native MINOR — RN is on the 0.x line, so the major is always 0.
|
|
53
|
+
// 0.84 is the default (latestVersions); 0.83 is the one older supported lane.
|
|
54
|
+
const versionMap = {
|
|
55
|
+
83: {
|
|
56
|
+
reactNativeVersion: '~0.83.9',
|
|
57
|
+
reactNativeBabelPresetVersion: '~0.83.9',
|
|
58
|
+
reactNativeMetroConfigVersion: '~0.83.9',
|
|
59
|
+
metroVersion: '~0.83.0',
|
|
60
|
+
reactNativeCommunityCliVersion: '~20.0.0',
|
|
61
|
+
reactNativeCommunityCliPlatformAndroidVersion: '~20.0.0',
|
|
62
|
+
reactNativeCommunityCliPlatformIosVersion: '~20.0.0',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
// Returns the install constants for the detected RN minor. Above the highest
|
|
66
|
+
// known minor (or when RN isn't installed) falls through to latest — no throw.
|
|
67
|
+
function versions(tree) {
|
|
68
|
+
const installedReactNativeVersion = (0, internal_1.getDeclaredPackageVersion)(tree, 'react-native');
|
|
69
|
+
if (!installedReactNativeVersion) {
|
|
70
|
+
return latestVersions;
|
|
71
|
+
}
|
|
72
|
+
return versionMap[(0, semver_1.minor)(installedReactNativeVersion)] ?? latestVersions;
|
|
73
|
+
}
|
package/executors.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"executors": {
|
|
3
3
|
"run-android": {
|
|
4
|
-
"implementation": "./src/executors/run-android/run-android.impl",
|
|
5
|
-
"schema": "./src/executors/run-android/schema.json",
|
|
4
|
+
"implementation": "./dist/src/executors/run-android/run-android.impl",
|
|
5
|
+
"schema": "./dist/src/executors/run-android/schema.json",
|
|
6
6
|
"description": "Runs Android application."
|
|
7
7
|
},
|
|
8
8
|
"run-ios": {
|
|
9
|
-
"implementation": "./src/executors/run-ios/run-ios.impl",
|
|
10
|
-
"schema": "./src/executors/run-ios/schema.json",
|
|
9
|
+
"implementation": "./dist/src/executors/run-ios/run-ios.impl",
|
|
10
|
+
"schema": "./dist/src/executors/run-ios/schema.json",
|
|
11
11
|
"description": "Runs iOS application."
|
|
12
12
|
},
|
|
13
13
|
"bundle": {
|
|
14
|
-
"implementation": "./src/executors/bundle/bundle.impl",
|
|
15
|
-
"schema": "./src/executors/bundle/schema.json",
|
|
14
|
+
"implementation": "./dist/src/executors/bundle/bundle.impl",
|
|
15
|
+
"schema": "./dist/src/executors/bundle/schema.json",
|
|
16
16
|
"description": "Builds the JavaScript bundle for offline use."
|
|
17
17
|
},
|
|
18
18
|
"build-android": {
|
|
19
|
-
"implementation": "./src/executors/build-android/build-android.impl",
|
|
20
|
-
"schema": "./src/executors/build-android/schema.json",
|
|
19
|
+
"implementation": "./dist/src/executors/build-android/build-android.impl",
|
|
20
|
+
"schema": "./dist/src/executors/build-android/schema.json",
|
|
21
21
|
"description": "Release Build for Android."
|
|
22
22
|
},
|
|
23
23
|
"build-ios": {
|
|
24
|
-
"implementation": "./src/executors/build-ios/build-ios.impl",
|
|
25
|
-
"schema": "./src/executors/build-ios/schema.json",
|
|
24
|
+
"implementation": "./dist/src/executors/build-ios/build-ios.impl",
|
|
25
|
+
"schema": "./dist/src/executors/build-ios/schema.json",
|
|
26
26
|
"description": "Build iOS app"
|
|
27
27
|
},
|
|
28
28
|
"start": {
|
|
29
|
-
"implementation": "./src/executors/start/start.impl",
|
|
30
|
-
"schema": "./src/executors/start/schema.json",
|
|
29
|
+
"implementation": "./dist/src/executors/start/start.impl",
|
|
30
|
+
"schema": "./dist/src/executors/start/schema.json",
|
|
31
31
|
"description": "Starts the Javascript server that communicates with connected devices."
|
|
32
32
|
},
|
|
33
33
|
"sync-deps": {
|
|
34
|
-
"implementation": "./src/executors/sync-deps/sync-deps.impl",
|
|
35
|
-
"schema": "./src/executors/sync-deps/schema.json",
|
|
34
|
+
"implementation": "./dist/src/executors/sync-deps/sync-deps.impl",
|
|
35
|
+
"schema": "./dist/src/executors/sync-deps/schema.json",
|
|
36
36
|
"description": "Syncs dependencies to `package.json` (required for autolinking)."
|
|
37
37
|
},
|
|
38
38
|
"ensure-symlink": {
|
|
39
|
-
"implementation": "./src/executors/ensure-symlink/ensure-symlink.impl",
|
|
40
|
-
"schema": "./src/executors/ensure-symlink//schema.json",
|
|
39
|
+
"implementation": "./dist/src/executors/ensure-symlink/ensure-symlink.impl",
|
|
40
|
+
"schema": "./dist/src/executors/ensure-symlink//schema.json",
|
|
41
41
|
"description": "Ensure workspace `node_modules` is symlink under app's `node_modules` folder."
|
|
42
42
|
},
|
|
43
43
|
"storybook": {
|
|
44
|
-
"implementation": "./src/executors/storybook/storybook.impl",
|
|
45
|
-
"schema": "./src/executors/storybook/schema.json",
|
|
44
|
+
"implementation": "./dist/src/executors/storybook/storybook.impl",
|
|
45
|
+
"schema": "./dist/src/executors/storybook/schema.json",
|
|
46
46
|
"description": "Serve React Native Storybook."
|
|
47
47
|
},
|
|
48
48
|
"pod-install": {
|
|
49
|
-
"implementation": "./src/executors/pod-install/pod-install.impl",
|
|
50
|
-
"schema": "./src/executors/pod-install/schema.json",
|
|
49
|
+
"implementation": "./dist/src/executors/pod-install/pod-install.impl",
|
|
50
|
+
"schema": "./dist/src/executors/pod-install/schema.json",
|
|
51
51
|
"description": "Run `pod install` in the `ios` directory."
|
|
52
52
|
},
|
|
53
53
|
"upgrade": {
|
|
54
|
-
"implementation": "./src/executors/upgrade/upgrade.impl",
|
|
55
|
-
"schema": "./src/executors/upgrade/schema.json",
|
|
54
|
+
"implementation": "./dist/src/executors/upgrade/upgrade.impl",
|
|
55
|
+
"schema": "./dist/src/executors/upgrade/schema.json",
|
|
56
56
|
"description": "upgrade executor"
|
|
57
57
|
}
|
|
58
58
|
}
|
package/generators.json
CHANGED
|
@@ -4,39 +4,39 @@
|
|
|
4
4
|
"extends": ["@nx/workspace"],
|
|
5
5
|
"generators": {
|
|
6
6
|
"init": {
|
|
7
|
-
"factory": "./src/generators/init/init#reactNativeInitGeneratorInternal",
|
|
8
|
-
"schema": "./src/generators/init/schema.json",
|
|
7
|
+
"factory": "./dist/src/generators/init/init#reactNativeInitGeneratorInternal",
|
|
8
|
+
"schema": "./dist/src/generators/init/schema.json",
|
|
9
9
|
"description": "Initialize the `@nx/react-native` plugin.",
|
|
10
10
|
"hidden": true
|
|
11
11
|
},
|
|
12
12
|
"application": {
|
|
13
|
-
"factory": "./src/generators/application/application#reactNativeApplicationGeneratorInternal",
|
|
14
|
-
"schema": "./src/generators/application/schema.json",
|
|
13
|
+
"factory": "./dist/src/generators/application/application#reactNativeApplicationGeneratorInternal",
|
|
14
|
+
"schema": "./dist/src/generators/application/schema.json",
|
|
15
15
|
"aliases": ["app"],
|
|
16
16
|
"x-type": "application",
|
|
17
17
|
"description": "Create a React Native application."
|
|
18
18
|
},
|
|
19
19
|
"library": {
|
|
20
|
-
"factory": "./src/generators/library/library#reactNativeLibraryGeneratorInternal",
|
|
21
|
-
"schema": "./src/generators/library/schema.json",
|
|
20
|
+
"factory": "./dist/src/generators/library/library#reactNativeLibraryGeneratorInternal",
|
|
21
|
+
"schema": "./dist/src/generators/library/schema.json",
|
|
22
22
|
"aliases": ["lib"],
|
|
23
23
|
"x-type": "library",
|
|
24
24
|
"description": "Create a React Native library."
|
|
25
25
|
},
|
|
26
26
|
"component": {
|
|
27
|
-
"factory": "./src/generators/component/component",
|
|
28
|
-
"schema": "./src/generators/component/schema.json",
|
|
27
|
+
"factory": "./dist/src/generators/component/component",
|
|
28
|
+
"schema": "./dist/src/generators/component/schema.json",
|
|
29
29
|
"description": "Create a React Native component.",
|
|
30
30
|
"aliases": ["c"]
|
|
31
31
|
},
|
|
32
32
|
"web-configuration": {
|
|
33
|
-
"factory": "./src/generators/web-configuration/web-configuration#webConfigurationGenerator",
|
|
34
|
-
"schema": "./src/generators/web-configuration/schema.json",
|
|
33
|
+
"factory": "./dist/src/generators/web-configuration/web-configuration#webConfigurationGenerator",
|
|
34
|
+
"schema": "./dist/src/generators/web-configuration/schema.json",
|
|
35
35
|
"description": "Set up web configuration for a React Native app"
|
|
36
36
|
},
|
|
37
37
|
"convert-to-inferred": {
|
|
38
|
-
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
39
|
-
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
38
|
+
"factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred",
|
|
39
|
+
"schema": "./dist/src/generators/convert-to-inferred/schema.json",
|
|
40
40
|
"description": "Convert existing React Native project(s) using `@nx/react-native:*` executors to use `@nx/react-native/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
|
|
41
41
|
}
|
|
42
42
|
}
|