@nx/react-native 16.6.0-beta.4 → 16.6.0-beta.5

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/.eslintrc.json CHANGED
@@ -14,6 +14,29 @@
14
14
  "rules": {
15
15
  "@nx/nx-plugin-checks": "error"
16
16
  }
17
+ },
18
+ {
19
+ "files": ["./package.json"],
20
+ "parser": "jsonc-eslint-parser",
21
+ "rules": {
22
+ "@nx/dependency-checks": [
23
+ "error",
24
+ {
25
+ "buildTargets": ["build-base"],
26
+ "ignoredDependencies": [
27
+ "nx",
28
+ "eslint",
29
+ "prettier",
30
+ "typescript",
31
+ "react",
32
+ "react-native",
33
+ // These are in ensurePackage
34
+ "@nx/rollup",
35
+ "@nx/storybook"
36
+ ]
37
+ }
38
+ ]
39
+ }
17
40
  }
18
41
  ]
19
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react-native",
3
- "version": "16.6.0-beta.4",
3
+ "version": "16.6.0-beta.5",
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": [
@@ -25,14 +25,14 @@
25
25
  "main": "./index",
26
26
  "types": "index.d.ts",
27
27
  "dependencies": {
28
- "@nrwl/react-native": "16.6.0-beta.4",
29
- "@nx/detox": "16.6.0-beta.4",
30
- "@nx/devkit": "16.6.0-beta.4",
31
- "@nx/jest": "16.6.0-beta.4",
32
- "@nx/js": "16.6.0-beta.4",
33
- "@nx/linter": "16.6.0-beta.4",
34
- "@nx/react": "16.6.0-beta.4",
35
- "@nx/workspace": "16.6.0-beta.4",
28
+ "@nrwl/react-native": "16.6.0-beta.5",
29
+ "@nx/detox": "16.6.0-beta.5",
30
+ "@nx/devkit": "16.6.0-beta.5",
31
+ "@nx/jest": "16.6.0-beta.5",
32
+ "@nx/js": "16.6.0-beta.5",
33
+ "@nx/linter": "16.6.0-beta.5",
34
+ "@nx/react": "16.6.0-beta.5",
35
+ "@nx/workspace": "16.6.0-beta.5",
36
36
  "chalk": "^4.1.0",
37
37
  "enhanced-resolve": "^5.8.3",
38
38
  "fs-extra": "^11.1.0",
@@ -42,7 +42,8 @@
42
42
  "metro-resolver": "0.76.7",
43
43
  "minimatch": "3.0.5",
44
44
  "node-fetch": "^2.6.7",
45
- "tsconfig-paths": "^4.1.2"
45
+ "tsconfig-paths": "^4.1.2",
46
+ "tslib": "^2.3.0"
46
47
  },
47
48
  "peerDependencies": {
48
49
  "react-native": ">= 0.72.0 < 0.73.0"
@@ -56,5 +57,5 @@
56
57
  "publishConfig": {
57
58
  "access": "public"
58
59
  },
59
- "gitHead": "b1a9ae7ce76697019b26ec9a172005840cca8da6"
60
+ "gitHead": "aab868aa0c30949832fe2c4b9cb109c204442e39"
60
61
  }
@@ -356,7 +356,7 @@ export const App = () => {
356
356
  <View style={[styles.listItem, styles.marginBottomMd]}>
357
357
  <Svg width={48} height={48} viewBox="0 0 120 120" stroke="currentColor" fill="transparent">
358
358
  <Path strokeWidth="2" d="M23 3.75V6.5c-3.036 0-5.5 2.464-5.5 5.5s-2.464 5.5-5.5 5.5-5.5 2.464-5.5 5.5H3.75C2.232 23 1 21.768 1 20.25V3.75C1 2.232 2.232 1 3.75 1h16.5C21.768 1 23 2.232 23 3.75Z" />
359
- <Path strokewidth="2" d="M23 6v14.1667C23 21.7307 21.7307 23 20.1667 23H6c0-3.128 2.53867-5.6667 5.6667-5.6667 3.128 0 5.6666-2.5386 5.6666-5.6666C17.3333 8.53867 19.872 6 23 6Z" />
359
+ <Path strokeWidth="2" d="M23 6v14.1667C23 21.7307 21.7307 23 20.1667 23H6c0-3.128 2.53867-5.6667 5.6667-5.6667 3.128 0 5.6666-2.5386 5.6666-5.6666C17.3333 8.53867 19.872 6 23 6Z" />
360
360
  </Svg>
361
361
  <View style={styles.listItemTextContainer}>
362
362
  <Text
@@ -4,6 +4,7 @@
4
4
  "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
5
  "types": ["node"]
6
6
  },
7
+ "files": ["<%= offsetFromRoot %>node_modules/@nx/react-native/typings/svg.d.ts"],
7
8
  "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.spec.tsx", "test-setup.ts"],
8
9
  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx"]
9
10
  }
@@ -7,19 +7,13 @@
7
7
  "moduleResolution": "node",
8
8
  "skipLibCheck": true,
9
9
  "resolveJsonModule": true,
10
- "composite": true,
11
10
  "declaration": true
12
11
  },
13
- "files": [
14
- "../../node_modules/@nx/react-native/typings/svg.d.ts"
15
- ],
12
+ "files": [],
16
13
  "include": [],
17
14
  "references": [
18
15
  {
19
16
  "path": "./tsconfig.app.json"
20
17
  }
21
- ],
22
- "exclude": [
23
- "node_modules"
24
18
  ]
25
19
  }
@@ -109,6 +109,10 @@ function createFiles(host, options) {
109
109
  function updateLibPackageNpmScope(host, options) {
110
110
  return (0, devkit_1.updateJson)(host, `${options.projectRoot}/package.json`, (json) => {
111
111
  json.name = options.importPath;
112
+ json.peerDependencies = {
113
+ react: versions_1.reactVersion,
114
+ 'react-native': versions_1.reactNativeVersion,
115
+ };
112
116
  return json;
113
117
  });
114
118
  }