@nx/react-native 22.0.2 → 22.0.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": "22.0.2",
3
+ "version": "22.0.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": [
@@ -26,10 +26,10 @@
26
26
  "main": "./index.js",
27
27
  "types": "index.d.ts",
28
28
  "dependencies": {
29
- "@nx/devkit": "22.0.2",
30
- "@nx/js": "22.0.2",
31
- "@nx/eslint": "22.0.2",
32
- "@nx/react": "22.0.2",
29
+ "@nx/devkit": "22.0.4",
30
+ "@nx/js": "22.0.4",
31
+ "@nx/eslint": "22.0.4",
32
+ "@nx/react": "22.0.4",
33
33
  "ajv": "^8.12.0",
34
34
  "enhanced-resolve": "^5.8.3",
35
35
  "ignore": "^5.0.4",
@@ -43,8 +43,8 @@
43
43
  "metro-resolver": ">= 0.82.0"
44
44
  },
45
45
  "optionalDependencies": {
46
- "@nx/detox": "22.0.2",
47
- "@nx/rollup": "22.0.2"
46
+ "@nx/detox": "22.0.4",
47
+ "@nx/rollup": "22.0.4"
48
48
  },
49
49
  "executors": "./executors.json",
50
50
  "ng-update": {
@@ -1 +1 @@
1
- {"version":3,"file":"add-jest.d.ts","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-jest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiC,MAAM,YAAY,CAAC;AAGjE,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,GAAG,MAAM,EAC/B,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,OAAO,EACX,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,OAAO,EAClB,uBAAuB,EAAE,MAAM,uBAqDhC"}
1
+ {"version":3,"file":"add-jest.d.ts","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-jest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiC,MAAM,YAAY,CAAC;AAGjE,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,GAAG,MAAM,EAC/B,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,OAAO,EACX,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,OAAO,EAClB,uBAAuB,EAAE,MAAM,uBAwDhC"}
@@ -21,8 +21,11 @@ async function addJest(host, unitTestRunner, projectName, appProjectRoot, js, sk
21
21
  runtimeTsconfigFileName,
22
22
  });
23
23
  // overwrite the jest.config.ts file because react native needs to have special transform property
24
- const configPath = `${appProjectRoot}/jest.config.${js ? 'js' : 'ts'}`;
25
- const content = `module.exports = {
24
+ // Workaround issue where Jest is not picking tyope node nor jest types from tsconfig by using <reference>.
25
+ const configPath = `${appProjectRoot}/jest.config.${js ? 'js' : 'cts'}`;
26
+ const content = `/// <reference types="jest" />
27
+ /// <reference types="node" />
28
+ module.exports = {
26
29
  displayName: '${projectName}',
27
30
  preset: 'react-native',
28
31
  resolver: '@nx/jest/plugins/resolver',