@nx/react-native 0.0.0-pr-28808-6acf6c6 → 0.0.0-pr-28808-bceb02f

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": "0.0.0-pr-28808-6acf6c6",
3
+ "version": "0.0.0-pr-28808-bceb02f",
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": "0.0.0-pr-28808-6acf6c6",
40
- "@nx/jest": "0.0.0-pr-28808-6acf6c6",
41
- "@nx/js": "0.0.0-pr-28808-6acf6c6",
42
- "@nx/eslint": "0.0.0-pr-28808-6acf6c6",
43
- "@nx/react": "0.0.0-pr-28808-6acf6c6",
44
- "@nx/workspace": "0.0.0-pr-28808-6acf6c6"
39
+ "@nx/devkit": "0.0.0-pr-28808-bceb02f",
40
+ "@nx/jest": "0.0.0-pr-28808-bceb02f",
41
+ "@nx/js": "0.0.0-pr-28808-bceb02f",
42
+ "@nx/eslint": "0.0.0-pr-28808-bceb02f",
43
+ "@nx/react": "0.0.0-pr-28808-bceb02f",
44
+ "@nx/workspace": "0.0.0-pr-28808-bceb02f"
45
45
  },
46
46
  "executors": "./executors.json",
47
47
  "ng-update": {
@@ -30,6 +30,7 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
30
30
  ...schema,
31
31
  skipFormat: true,
32
32
  addTsPlugin: schema.useTsSolution,
33
+ formatter: schema.formatter,
33
34
  });
34
35
  tasks.push(jsInitTask);
35
36
  const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
@@ -20,4 +20,5 @@ export interface Schema {
20
20
  addPlugin?: boolean;
21
21
  nxCloudToken?: string;
22
22
  useTsSolution?: boolean;
23
+ formatter?: 'prettier' | 'none';
23
24
  }
@@ -44,14 +44,14 @@
44
44
  "description": "The tool to use for running lint checks.",
45
45
  "type": "string",
46
46
  "enum": ["eslint", "none"],
47
- "default": "none",
47
+ "default": "eslint",
48
48
  "x-priority": "important"
49
49
  },
50
50
  "unitTestRunner": {
51
51
  "type": "string",
52
52
  "enum": ["jest", "none"],
53
53
  "description": "Test runner to use for unit tests",
54
- "default": "none",
54
+ "default": "jest",
55
55
  "x-priority": "important"
56
56
  },
57
57
  "tags": {
@@ -32,7 +32,7 @@
32
32
  "description": "The tool to use for running lint checks.",
33
33
  "type": "string",
34
34
  "enum": ["eslint", "none"],
35
- "default": "none",
35
+ "default": "eslint",
36
36
  "x-prompt": "Which linter would you like to use?",
37
37
  "x-priority": "important"
38
38
  },
@@ -40,7 +40,7 @@
40
40
  "type": "string",
41
41
  "enum": ["jest", "none"],
42
42
  "description": "Test runner to use for unit tests.",
43
- "default": "none",
43
+ "default": "jest",
44
44
  "x-priority": "important"
45
45
  },
46
46
  "tags": {
@@ -42,7 +42,7 @@ async function webConfigurationGenerator(tree, options) {
42
42
  }
43
43
  if (!options.skipPackageJson) {
44
44
  tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
45
- '@types/react-dom': versions_1.typesReactVersion,
45
+ '@types/react-dom': versions_1.typesReactDomVersion,
46
46
  }));
47
47
  }
48
48
  if (!options.skipFormat) {
@@ -64,6 +64,7 @@ async function addBundlerConfiguration(tree, normalizedSchema) {
64
64
  project: normalizedSchema.project,
65
65
  newProject: true,
66
66
  includeVitest: false,
67
+ projectType: 'application',
67
68
  compiler: 'babel',
68
69
  skipFormat: true,
69
70
  });
@@ -9,6 +9,7 @@ export declare const reactVersion = "18.2.0";
9
9
  export declare const reactDomVersion = "18.2.0";
10
10
  export declare const reactTestRendererVersion = "18.2.0";
11
11
  export declare const typesReactVersion = "~18.2.45";
12
+ export declare const typesReactDomVersion = "18.3.0";
12
13
  export declare const testingLibraryReactNativeVersion = "~12.5.0";
13
14
  export declare const testingLibraryJestNativeVersion = "~5.4.3";
14
15
  export declare const jestReactNativeVersion = "18.0.0";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = exports.reactNativeWebVersion = exports.reactNativeMetroConfigVersion = exports.reactNativeBabelPresetVersion = exports.reactNativeCommunityCliPlatformAndroidVersion = exports.typesNodeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
3
+ exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = exports.reactNativeWebVersion = exports.reactNativeMetroConfigVersion = exports.reactNativeBabelPresetVersion = exports.reactNativeCommunityCliPlatformAndroidVersion = exports.typesNodeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
5
  exports.reactNativeVersion = '0.74.1';
6
6
  exports.typesNodeVersion = '18.16.9';
@@ -12,6 +12,7 @@ exports.reactVersion = '18.2.0';
12
12
  exports.reactDomVersion = '18.2.0';
13
13
  exports.reactTestRendererVersion = '18.2.0';
14
14
  exports.typesReactVersion = '~18.2.45';
15
+ exports.typesReactDomVersion = '18.3.0';
15
16
  exports.testingLibraryReactNativeVersion = '~12.5.0';
16
17
  exports.testingLibraryJestNativeVersion = '~5.4.3';
17
18
  exports.jestReactNativeVersion = '18.0.0';