feat(react-native): upgrade metro-resolver to 0.69.1 (#9381)
This commit is contained in:
parent
83acbafa7c
commit
3627c3a38c
@ -31,11 +31,7 @@ describe('Detox', () => {
|
|||||||
|
|
||||||
describe('React Native Detox MACOS-Tests', () => {
|
describe('React Native Detox MACOS-Tests', () => {
|
||||||
if (isOSX()) {
|
if (isOSX()) {
|
||||||
it('should build and test ios MACOS-Tests', async () => {
|
it('should test ios MACOS-Tests', async () => {
|
||||||
expect(runCLI(`build-ios ${appName}-e2e --prod`)).toContain(
|
|
||||||
'Successfully ran target build-ios'
|
|
||||||
);
|
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
runCLI(
|
runCLI(
|
||||||
`test-ios ${appName}-e2e --prod --debugSynchronization=true --loglevel=trace`
|
`test-ios ${appName}-e2e --prod --debugSynchronization=true --loglevel=trace`
|
||||||
|
|||||||
@ -183,7 +183,7 @@
|
|||||||
"license-webpack-plugin": "^4.0.2",
|
"license-webpack-plugin": "^4.0.2",
|
||||||
"loader-utils": "1.2.3",
|
"loader-utils": "1.2.3",
|
||||||
"memfs": "^3.0.1",
|
"memfs": "^3.0.1",
|
||||||
"metro-resolver": "^0.67.0",
|
"metro-resolver": "^0.69.1",
|
||||||
"mime": "2.4.4",
|
"mime": "2.4.4",
|
||||||
"mini-css-extract-plugin": "~2.4.7",
|
"mini-css-extract-plugin": "~2.4.7",
|
||||||
"minimatch": "3.0.4",
|
"minimatch": "3.0.4",
|
||||||
|
|||||||
@ -38,10 +38,6 @@
|
|||||||
"detox": {
|
"detox": {
|
||||||
"version": "18.22.2",
|
"version": "18.22.2",
|
||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
},
|
|
||||||
"@types/detox": {
|
|
||||||
"version": "17.14.3",
|
|
||||||
"alwaysAddToPackageJson": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -65,10 +61,6 @@
|
|||||||
"version": "19.4.1",
|
"version": "19.4.1",
|
||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
},
|
},
|
||||||
"@types/detox": {
|
|
||||||
"version": "18.1.0",
|
|
||||||
"alwaysAddToPackageJson": false
|
|
||||||
},
|
|
||||||
"@testing-library/jest-dom": {
|
"@testing-library/jest-dom": {
|
||||||
"version": "5.16.1",
|
"version": "5.16.1",
|
||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
@ -96,6 +88,15 @@
|
|||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"13.9.3": {
|
||||||
|
"version": "13.9.3-beta.0",
|
||||||
|
"packages": {
|
||||||
|
"detox": {
|
||||||
|
"version": "19.5.7",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
"chalk": "^4.1.0"
|
"chalk": "^4.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"detox": "^19.5.1"
|
"detox": "^19.5.7"
|
||||||
},
|
},
|
||||||
"builders": "./executors.json",
|
"builders": "./executors.json",
|
||||||
"ng-update": {
|
"ng-update": {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
export const nxVersion = '*';
|
export const nxVersion = '*';
|
||||||
|
|
||||||
export const detoxVersion = '19.5.1';
|
export const detoxVersion = '19.5.7';
|
||||||
export const testingLibraryJestDom = '5.16.2';
|
export const testingLibraryJestDom = '5.16.2';
|
||||||
|
|||||||
@ -407,6 +407,39 @@
|
|||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"13.9.3": {
|
||||||
|
"version": "13.9.3-beta.0",
|
||||||
|
"packages": {
|
||||||
|
"@types/react-native": {
|
||||||
|
"version": "0.67.3",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"metro": {
|
||||||
|
"version": "0.69.1",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"metro-resolver": {
|
||||||
|
"version": "0.69.1",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"metro-config": {
|
||||||
|
"version": "0.69.1",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"metro-react-native-babel-preset": {
|
||||||
|
"version": "0.69.1",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"@babel/runtime": {
|
||||||
|
"version": "7.17.7",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"@react-native-async-storage/async-storage": {
|
||||||
|
"version": "1.16.3",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
"enhanced-resolve": "^5.8.3",
|
"enhanced-resolve": "^5.8.3",
|
||||||
"fs-extra": "^9.1.0",
|
"fs-extra": "^9.1.0",
|
||||||
"ignore": "^5.0.4",
|
"ignore": "^5.0.4",
|
||||||
"metro-resolver": "^0.67.0",
|
"metro-resolver": "^0.69.1",
|
||||||
"node-fetch": "^2.6.7",
|
"node-fetch": "^2.6.7",
|
||||||
"tsconfig-paths": "^3.9.0"
|
"tsconfig-paths": "^3.9.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2,7 +2,6 @@ import * as metroResolver from 'metro-resolver';
|
|||||||
import type { MatchPath } from 'tsconfig-paths';
|
import type { MatchPath } from 'tsconfig-paths';
|
||||||
import { createMatchPath, loadConfig } from 'tsconfig-paths';
|
import { createMatchPath, loadConfig } from 'tsconfig-paths';
|
||||||
import * as chalk from 'chalk';
|
import * as chalk from 'chalk';
|
||||||
import { detectPackageManager } from '@nrwl/devkit';
|
|
||||||
import { CachedInputFileSystem, ResolverFactory } from 'enhanced-resolve';
|
import { CachedInputFileSystem, ResolverFactory } from 'enhanced-resolve';
|
||||||
import { dirname, join } from 'path';
|
import { dirname, join } from 'path';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
@ -32,16 +31,14 @@ export function getResolveRequest(extensions: string[]) {
|
|||||||
return resolvedPath;
|
return resolvedPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (detectPackageManager(appRootPath) === 'pnpm') {
|
resolvedPath = pnpmResolver(
|
||||||
resolvedPath = pnpmResolver(
|
extensions,
|
||||||
extensions,
|
context,
|
||||||
context,
|
realModuleName,
|
||||||
realModuleName,
|
moduleName
|
||||||
moduleName
|
);
|
||||||
);
|
if (resolvedPath) {
|
||||||
if (resolvedPath) {
|
return resolvedPath;
|
||||||
return resolvedPath;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return tsconfigPathsResolver(
|
return tsconfigPathsResolver(
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"cli": "nx",
|
"cli": "nx",
|
||||||
"$id": "NxReactNativeApplication",
|
"$id": "NxReactNativeApplication",
|
||||||
"$schema": "http://json-schema.org/schema",
|
"$schema": "http://json-schema.org/schema",
|
||||||
"title": "Create a React Component for Nx",
|
"title": "Create a React Native Component for Nx",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -22,7 +22,7 @@ import {
|
|||||||
metroReactNativeBabelPresetVersion,
|
metroReactNativeBabelPresetVersion,
|
||||||
metroVersion,
|
metroVersion,
|
||||||
nxVersion,
|
nxVersion,
|
||||||
reactNativeAsyncStorageVersion,
|
reactNativeAsyncStorageAsyncStorageVersion,
|
||||||
reactNativeCommunityCli,
|
reactNativeCommunityCli,
|
||||||
reactNativeCommunityCliAndroid,
|
reactNativeCommunityCliAndroid,
|
||||||
reactNativeCommunityCliIos,
|
reactNativeCommunityCliIos,
|
||||||
@ -90,7 +90,7 @@ export function updateDependencies(host: Tree) {
|
|||||||
'react-native-svg': reactNativeSvgVersion,
|
'react-native-svg': reactNativeSvgVersion,
|
||||||
'react-native-config': reactNativeConfigVersion,
|
'react-native-config': reactNativeConfigVersion,
|
||||||
'@react-native-async-storage/async-storage':
|
'@react-native-async-storage/async-storage':
|
||||||
reactNativeAsyncStorageVersion,
|
reactNativeAsyncStorageAsyncStorageVersion,
|
||||||
...(isPnpm
|
...(isPnpm
|
||||||
? {
|
? {
|
||||||
'metro-config': metroVersion, // metro-config is used by metro.config.js
|
'metro-config': metroVersion, // metro-config is used by metro.config.js
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"cli": "nx",
|
"cli": "nx",
|
||||||
"$id": "NxReactNativeInit",
|
"$id": "NxReactNativeInit",
|
||||||
"$schema": "http://json-schema.org/schema",
|
"$schema": "http://json-schema.org/schema",
|
||||||
"title": "Add Nx React Schematics",
|
"title": "Add Nx React Native Schematics",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"unitTestRunner": {
|
"unitTestRunner": {
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
export const nxVersion = '*';
|
export const nxVersion = '*';
|
||||||
|
|
||||||
export const reactNativeVersion = '0.67.3';
|
export const reactNativeVersion = '0.67.3';
|
||||||
export const typesReactNativeVersion = '0.67.2';
|
export const typesReactNativeVersion = '0.67.3';
|
||||||
|
|
||||||
export const metroVersion = '0.69.0';
|
export const metroVersion = '0.69.1';
|
||||||
|
|
||||||
export const reactNativeCommunityCli = '7.0.1';
|
export const reactNativeCommunityCli = '7.0.1';
|
||||||
export const reactNativeCommunityCliIos = '7.0.1';
|
export const reactNativeCommunityCliIos = '7.0.1';
|
||||||
export const reactNativeCommunityCliAndroid = '7.0.1';
|
export const reactNativeCommunityCliAndroid = '7.0.1';
|
||||||
|
|
||||||
export const reactNativeConfigVersion = '1.4.5';
|
export const reactNativeConfigVersion = '1.4.5';
|
||||||
export const reactNativeAsyncStorageVersion = '1.16.1';
|
export const reactNativeAsyncStorageAsyncStorageVersion = '1.16.3';
|
||||||
|
|
||||||
export const metroReactNativeBabelPresetVersion = '0.69.0';
|
export const metroReactNativeBabelPresetVersion = '0.69.1';
|
||||||
|
|
||||||
export const testingLibraryReactNativeVersion = '9.0.0';
|
export const testingLibraryReactNativeVersion = '9.0.0';
|
||||||
export const testingLibraryJestNativeVersion = '4.0.4';
|
export const testingLibraryJestNativeVersion = '4.0.4';
|
||||||
@ -24,4 +24,4 @@ export const reactTestRendererVersion = '17.0.2';
|
|||||||
export const reactNativeSvgTransformerVersion = '1.0.0';
|
export const reactNativeSvgTransformerVersion = '1.0.0';
|
||||||
export const reactNativeSvgVersion = '12.3.0';
|
export const reactNativeSvgVersion = '12.3.0';
|
||||||
|
|
||||||
export const babelRuntimeVersion = '7.17.2';
|
export const babelRuntimeVersion = '7.17.7';
|
||||||
|
|||||||
@ -16993,10 +16993,10 @@ methods@~1.1.2:
|
|||||||
resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz"
|
resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz"
|
||||||
integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=
|
integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=
|
||||||
|
|
||||||
metro-resolver@^0.67.0:
|
metro-resolver@^0.69.1:
|
||||||
version "0.67.0"
|
version "0.69.1"
|
||||||
resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.67.0.tgz#8143c716f77e468d1d42eca805243706eb349959"
|
resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.69.1.tgz#0f01285e9e2683debf6599b91e7bf179f94990dd"
|
||||||
integrity sha512-d2KS/zAyOA/z/q4/ff41rAp+1txF4H6qItwpsls/RHStV2j6PqgRHUzq/3ga+VIeoUJntYJ8nGW3+3qSrhFlig==
|
integrity sha512-sTUp8n3hP+K6Jm3beqnadPZWj53trzDi0wqLKC2iKNy1+UoBZkiqmHY0dZKaoF8XoOsksoph+aghlBZkchgEng==
|
||||||
dependencies:
|
dependencies:
|
||||||
absolute-path "^0.0.0"
|
absolute-path "^0.0.0"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user