@nx/react-native 20.1.3 → 20.1.4

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.1.3",
3
+ "version": "20.1.4",
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.1.3",
40
- "@nx/jest": "20.1.3",
41
- "@nx/js": "20.1.3",
42
- "@nx/eslint": "20.1.3",
43
- "@nx/react": "20.1.3",
44
- "@nx/workspace": "20.1.3"
39
+ "@nx/devkit": "20.1.4",
40
+ "@nx/jest": "20.1.4",
41
+ "@nx/js": "20.1.4",
42
+ "@nx/eslint": "20.1.4",
43
+ "@nx/react": "20.1.4",
44
+ "@nx/workspace": "20.1.4"
45
45
  },
46
46
  "executors": "./executors.json",
47
47
  "ng-update": {
@@ -7,28 +7,31 @@
7
7
  "type": "object",
8
8
  "examples": [
9
9
  {
10
- "command": "nx g @nx/react-native:component mylib/src/lib/my-component/my-component ",
11
- "description": "Generate a component in the `mylib` library"
10
+ "description": "Generate a component with the exported symbol matching the file name. It results in the component `Foo` at `mylib/src/lib/foo.tsx`",
11
+ "command": "nx g @nx/react-native:component mylib/src/lib/foo"
12
12
  },
13
13
  {
14
- "command": "nx g @nx/react-native:component mylib/src/lib/my-component/my-component --classComponent",
15
- "description": "Generate a class component in the `mylib` library"
14
+ "description": "Generate a component with the exported symbol different from the file name. It results in the component `Custom` at `mylib/src/lib/foo.tsx`",
15
+ "command": "nx g @nx/react-native:component mylib/src/lib/foo --name=custom"
16
+ },
17
+ {
18
+ "description": "Generate a class component at `mylib/src/lib/foo.tsx`",
19
+ "command": "nx g @nx/react-native:component mylib/src/lib/foo --classComponent"
16
20
  }
17
21
  ],
18
22
  "properties": {
19
23
  "path": {
20
24
  "type": "string",
21
- "description": "The path at which to create the component file.",
25
+ "description": "The file path to the component without the file extension. Relative to the current working directory.",
22
26
  "$default": {
23
27
  "$source": "argv",
24
28
  "index": 0
25
29
  },
26
- "x-prompt": "What path would you like to use for the component?"
30
+ "x-prompt": "What is the component file path?"
27
31
  },
28
32
  "name": {
29
33
  "type": "string",
30
- "description": "The name of the component.",
31
- "x-prompt": "What name would you like to use for the component?"
34
+ "description": "The component symbol name. Defaults to the last segment of the file path."
32
35
  },
33
36
  "js": {
34
37
  "type": "boolean",