@nx/react-native 20.4.0-beta.0 → 20.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react-native",
|
|
3
|
-
"version": "20.4.0-beta.
|
|
3
|
+
"version": "20.4.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"node-fetch": "^2.6.7",
|
|
37
37
|
"tsconfig-paths": "^4.1.2",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
|
-
"@nx/devkit": "20.4.0-beta.
|
|
40
|
-
"@nx/jest": "20.4.0-beta.
|
|
41
|
-
"@nx/js": "20.4.0-beta.
|
|
42
|
-
"@nx/eslint": "20.4.0-beta.
|
|
43
|
-
"@nx/react": "20.4.0-beta.
|
|
44
|
-
"@nx/workspace": "20.4.0-beta.
|
|
39
|
+
"@nx/devkit": "20.4.0-beta.1",
|
|
40
|
+
"@nx/jest": "20.4.0-beta.1",
|
|
41
|
+
"@nx/js": "20.4.0-beta.1",
|
|
42
|
+
"@nx/eslint": "20.4.0-beta.1",
|
|
43
|
+
"@nx/react": "20.4.0-beta.1",
|
|
44
|
+
"@nx/workspace": "20.4.0-beta.1"
|
|
45
45
|
},
|
|
46
46
|
"executors": "./executors.json",
|
|
47
47
|
"ng-update": {
|
|
@@ -18,6 +18,7 @@ const add_e2e_1 = require("./lib/add-e2e");
|
|
|
18
18
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
19
19
|
const sync_deps_impl_1 = require("../../executors/sync-deps/sync-deps.impl");
|
|
20
20
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
21
|
+
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
21
22
|
async function reactNativeApplicationGenerator(host, schema) {
|
|
22
23
|
return await reactNativeApplicationGeneratorInternal(host, {
|
|
23
24
|
addPlugin: false,
|
|
@@ -31,6 +32,7 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
|
|
|
31
32
|
skipFormat: true,
|
|
32
33
|
addTsPlugin: schema.useTsSolution,
|
|
33
34
|
formatter: schema.formatter,
|
|
35
|
+
platform: 'web',
|
|
34
36
|
});
|
|
35
37
|
tasks.push(jsInitTask);
|
|
36
38
|
const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
|
|
@@ -91,6 +93,7 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
|
|
|
91
93
|
if (options.useTsSolution) {
|
|
92
94
|
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
|
|
93
95
|
}
|
|
96
|
+
(0, sort_fields_1.sortPackageJsonFields)(host, options.appProjectRoot);
|
|
94
97
|
if (!options.skipFormat) {
|
|
95
98
|
await (0, devkit_1.formatFiles)(host);
|
|
96
99
|
}
|
|
@@ -13,6 +13,7 @@ const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
|
13
13
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
14
14
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
15
15
|
const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
|
|
16
|
+
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
16
17
|
async function reactNativeLibraryGenerator(host, schema) {
|
|
17
18
|
return await reactNativeLibraryGeneratorInternal(host, {
|
|
18
19
|
addPlugin: false,
|
|
@@ -68,6 +69,7 @@ async function reactNativeLibraryGeneratorInternal(host, schema) {
|
|
|
68
69
|
if (options.isUsingTsSolutionConfig) {
|
|
69
70
|
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
|
|
70
71
|
}
|
|
72
|
+
(0, sort_fields_1.sortPackageJsonFields)(host, options.projectRoot);
|
|
71
73
|
if (!options.skipFormat) {
|
|
72
74
|
await (0, devkit_1.formatFiles)(host);
|
|
73
75
|
}
|