@nx/react-native 22.7.0-pr.35019.f500fd7 → 22.7.0-pr.35356.e1b62ce

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.7.0-pr.35019.f500fd7",
3
+ "version": "22.7.0-pr.35356.e1b62ce",
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": [
@@ -24,12 +24,13 @@
24
24
  "license": "MIT",
25
25
  "author": "Victor Savkin",
26
26
  "main": "./index.js",
27
+ "type": "commonjs",
27
28
  "types": "index.d.ts",
28
29
  "dependencies": {
29
- "@nx/devkit": "22.7.0-pr.35019.f500fd7",
30
- "@nx/js": "22.7.0-pr.35019.f500fd7",
31
- "@nx/eslint": "22.7.0-pr.35019.f500fd7",
32
- "@nx/react": "22.7.0-pr.35019.f500fd7",
30
+ "@nx/devkit": "22.7.0-pr.35356.e1b62ce",
31
+ "@nx/js": "22.7.0-pr.35356.e1b62ce",
32
+ "@nx/eslint": "22.7.0-pr.35356.e1b62ce",
33
+ "@nx/react": "22.7.0-pr.35356.e1b62ce",
33
34
  "ajv": "^8.12.0",
34
35
  "enhanced-resolve": "^5.8.3",
35
36
  "ignore": "^5.0.4",
@@ -43,11 +44,11 @@
43
44
  "metro-resolver": ">= 0.82.0"
44
45
  },
45
46
  "devDependencies": {
46
- "nx": "22.7.0-pr.35019.f500fd7"
47
+ "nx": "22.7.0-pr.35356.e1b62ce"
47
48
  },
48
49
  "optionalDependencies": {
49
- "@nx/detox": "22.7.0-pr.35019.f500fd7",
50
- "@nx/rollup": "22.7.0-pr.35019.f500fd7"
50
+ "@nx/detox": "22.7.0-pr.35356.e1b62ce",
51
+ "@nx/rollup": "22.7.0-pr.35356.e1b62ce"
51
52
  },
52
53
  "executors": "./executors.json",
53
54
  "ng-update": {
@@ -57,6 +58,5 @@
57
58
  "generators": "./generators.json",
58
59
  "publishConfig": {
59
60
  "access": "public"
60
- },
61
- "type": "commonjs"
61
+ }
62
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"metro-resolver.d.ts","sourceRoot":"","sources":["../../../../packages/react-native/plugins/metro-resolver.ts"],"names":[],"mappings":"AAiCA,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAAE,EACpB,qBAAqB,GAAE,MAAM,EAAO,EACpC,UAAU,GAAE,MAAM,EAAO,IAGvB,UAAU,GAAG,EACb,gBAAgB,MAAM,EACtB,UAAU,MAAM,GAAG,IAAI,SAwC1B"}
1
+ {"version":3,"file":"metro-resolver.d.ts","sourceRoot":"","sources":["../../../../packages/react-native/plugins/metro-resolver.ts"],"names":[],"mappings":"AAkCA,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAAE,EACpB,qBAAqB,GAAE,MAAM,EAAO,EACpC,UAAU,GAAE,MAAM,EAAO,IAGvB,UAAU,GAAG,EACb,gBAAgB,MAAM,EACtB,UAAU,MAAM,GAAG,IAAI,SAwC1B"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getResolveRequest = getResolveRequest;
4
4
  const tslib_1 = require("tslib");
5
5
  const tsconfig_paths_1 = require("tsconfig-paths");
6
+ const ts_config_1 = require("@nx/js/src/utils/typescript/ts-config");
6
7
  const pc = tslib_1.__importStar(require("picocolors"));
7
8
  const enhanced_resolve_1 = require("enhanced-resolve");
8
9
  const path_1 = require("path");
@@ -114,7 +115,7 @@ function getMatcher(debug) {
114
115
  if (!matcher) {
115
116
  const result = (0, tsconfig_paths_1.loadConfig)();
116
117
  if (result.resultType === 'success') {
117
- absoluteBaseUrl = result.absoluteBaseUrl;
118
+ absoluteBaseUrl = (0, ts_config_1.resolvePathsBaseUrl)(result.configFileAbsolutePath);
118
119
  paths = result.paths;
119
120
  if (debug) {
120
121
  console.log(pc.cyan(`[Nx] Located tsconfig at ${pc.bold(absoluteBaseUrl)}`));
package/.eslintrc.json DELETED
@@ -1,67 +0,0 @@
1
- {
2
- "extends": "../../.eslintrc.json",
3
- "rules": {},
4
- "ignorePatterns": ["!**/*", "node_modules"],
5
- "overrides": [
6
- {
7
- "files": [
8
- "./package.json",
9
- "./generators.json",
10
- "./executors.json",
11
- "./migrations.json"
12
- ],
13
- "parser": "jsonc-eslint-parser",
14
- "rules": {
15
- "@nx/nx-plugin-checks": "error"
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
-
34
- // These are in ensurePackage
35
- "@nx/jest",
36
- "@nx/rollup",
37
- "@nx/storybook",
38
- "@nx/vite",
39
- "@nx/webpack",
40
- "@nx/detox",
41
- "@nx/cypress",
42
- "@nx/playwright",
43
- "ajv"
44
- ]
45
- }
46
- ]
47
- }
48
- },
49
- {
50
- "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
51
- "rules": {
52
- "no-restricted-imports": [
53
- "error",
54
- "@nx/workspace",
55
- {
56
- "name": "fs-extra",
57
- "message": "Please use equivalent utilities from `node:fs` instead."
58
- },
59
- {
60
- "name": "chalk",
61
- "message": "Please use `picocolors` in place of `chalk` for rendering terminal colors"
62
- }
63
- ]
64
- }
65
- }
66
- ]
67
- }
package/project.json DELETED
@@ -1,47 +0,0 @@
1
- {
2
- "name": "react-native",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/react-native/src",
5
- "projectType": "library",
6
- "targets": {
7
- "build": {
8
- "outputs": ["{workspaceRoot}/dist/packages/react-native/README.md"],
9
- "command": "node ./scripts/copy-readme.js react-native"
10
- },
11
- "legacy-post-build": {
12
- "executor": "@nx/workspace-plugin:legacy-post-build",
13
- "options": {
14
- "tsConfig": "./tsconfig.lib.json",
15
- "assets": [
16
- "packages/react-native/*.md",
17
- {
18
- "input": "packages/react-native",
19
- "glob": "**/files/**/.babelrc.template",
20
- "output": "/"
21
- },
22
- {
23
- "input": "packages/react-native/src",
24
- "glob": "**/!(*.ts)",
25
- "output": "/src"
26
- },
27
- {
28
- "input": "packages/react-native",
29
- "glob": "**/*.json",
30
- "ignore": ["**/tsconfig*.json"],
31
- "output": "/"
32
- },
33
- {
34
- "input": "packages/react-native",
35
- "glob": "**/*.d.ts",
36
- "output": "/"
37
- },
38
- {
39
- "input": "",
40
- "glob": "LICENSE",
41
- "output": "/"
42
- }
43
- ]
44
- }
45
- }
46
- }
47
- }