зеркало из https://github.com/microsoft/rnx-kit.git
chore: bump react-native to 0.72 (#2658)
This commit is contained in:
Родитель
96905f7b81
Коммит
b39eb8e298
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
---
|
19
.yarnrc.yml
19
.yarnrc.yml
|
@ -17,15 +17,22 @@ packageExtensions:
|
|||
"@microsoft/eslint-plugin-sdl@0.x":
|
||||
peerDependencies:
|
||||
eslint: ">=5.16.0"
|
||||
"babel-plugin-transform-flow-enums@*":
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.20.0
|
||||
"memfs@4.x":
|
||||
peerDependenciesMeta:
|
||||
"quill-delta":
|
||||
optional: true
|
||||
"memfs":
|
||||
optional: true
|
||||
"rxjs":
|
||||
optional: true
|
||||
"tslib":
|
||||
optional: true
|
||||
"react-native@*":
|
||||
peerDependencies:
|
||||
"@babel/preset-env": ^7.1.6
|
||||
"react-native-codegen@*":
|
||||
peerDependencies:
|
||||
"@babel/preset-env": ^7.1.6
|
||||
"react-native-gradle-plugin@*":
|
||||
peerDependencies:
|
||||
"@babel/preset-env": ^7.1.6
|
||||
"react-native-macos@*":
|
||||
peerDependencies:
|
||||
"@babel/preset-env": ^7.1.6
|
||||
|
|
|
@ -7,7 +7,7 @@ export const repoRoot = pkgDir.sync(path.resolve(__dirname, "..", ".."));
|
|||
|
||||
export const inputWithDuplicates: Record<string, Input> = {};
|
||||
inputWithDuplicates[
|
||||
`${repoRoot}/packages/test-app/node_modules/@react-native/polyfills/index.js`
|
||||
`${repoRoot}/node_modules/@rnx-kit/build/node_modules/chalk/source/index.js`
|
||||
] = {
|
||||
bytes: 15399,
|
||||
imports: [
|
||||
|
@ -50,9 +50,7 @@ inputWithDuplicates[
|
|||
format: "cjs",
|
||||
};
|
||||
|
||||
inputWithDuplicates[
|
||||
`${repoRoot}/node_modules/@react-native/polyfills/index.js`
|
||||
] = {
|
||||
inputWithDuplicates[`${repoRoot}/node_modules/chalk/source/index.js`] = {
|
||||
bytes: 15403,
|
||||
imports: [
|
||||
{
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
"@rnx-kit/scripts": "*",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro-config": "^0.73.7",
|
||||
"metro-config": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
@ -60,7 +60,7 @@
|
|||
"@rnx-kit/scripts/align-deps-preset.js"
|
||||
],
|
||||
"requirements": [
|
||||
"react-native@0.71"
|
||||
"react-native@0.72"
|
||||
],
|
||||
"capabilities": [
|
||||
"metro-config"
|
||||
|
|
38
package.json
38
package.json
|
@ -40,19 +40,19 @@
|
|||
"@rnx-kit/align-deps": "*",
|
||||
"eslint": "^8.0.0",
|
||||
"jest-cli": "^29.2.1",
|
||||
"metro": "^0.73.7",
|
||||
"metro-config": "^0.73.7",
|
||||
"metro-core": "^0.73.7",
|
||||
"metro-react-native-babel-preset": "^0.73.7",
|
||||
"metro-react-native-babel-transformer": "^0.73.7",
|
||||
"metro-resolver": "^0.73.7",
|
||||
"metro-runtime": "^0.73.7",
|
||||
"metro-transform-worker": "^0.73.7",
|
||||
"metro": "^0.76.5",
|
||||
"metro-config": "^0.76.5",
|
||||
"metro-core": "^0.76.5",
|
||||
"metro-react-native-babel-preset": "^0.76.5",
|
||||
"metro-react-native-babel-transformer": "^0.76.5",
|
||||
"metro-resolver": "^0.76.5",
|
||||
"metro-runtime": "^0.76.5",
|
||||
"metro-transform-worker": "^0.76.5",
|
||||
"nx": "^16.5.1",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "18.2.0",
|
||||
"react-native": "^0.71.0",
|
||||
"react-native-test-app": "^2.2.1",
|
||||
"react-native": "^0.72.0",
|
||||
"react-native-test-app": "^2.5.5",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -61,22 +61,16 @@
|
|||
"packageManager": "yarn@3.6.1",
|
||||
"resolutions": {
|
||||
"@microsoft/eslint-plugin-sdl/eslint-plugin-react": "^7.26.0",
|
||||
"@react-native-community/cli": "^10.2.5",
|
||||
"@react-native-community/cli-platform-android": "^10.2.0",
|
||||
"@react-native-community/cli-platform-ios": "^10.2.5",
|
||||
"@react-native-community/cli": "^11.3.6",
|
||||
"@react-native-community/cli-platform-android": "^11.3.6",
|
||||
"@react-native-community/cli-platform-ios": "^11.3.6",
|
||||
"@vue/compiler-sfc": "link:./incubator/ignore",
|
||||
"jscodeshift/micromatch": "^4.0.4",
|
||||
"metro": "^0.73.10",
|
||||
"metro-config": "^0.73.10",
|
||||
"metro-core": "^0.73.10",
|
||||
"metro-react-native-babel-transformer": "^0.73.10",
|
||||
"metro-resolver": "^0.73.10",
|
||||
"metro-runtime": "^0.73.10",
|
||||
"metro-source-map": "^0.73.10",
|
||||
"deprecated-react-native-prop-types/@react-native/normalize-colors": "^0.72.0",
|
||||
"nx/fast-glob": "^3.2.7",
|
||||
"nx/glob": "^7.1.4",
|
||||
"nx/minimatch": "^3.0.5",
|
||||
"nx/semver": "^7.3.4"
|
||||
"nx/semver": "^7.3.4",
|
||||
"react-native-windows/metro-source-map": "^0.76.8"
|
||||
},
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
|
|
|
@ -62,14 +62,11 @@
|
|||
"devDependencies": {
|
||||
"@react-native-community/cli-types": "^10.0.0",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/metro-babel-transformer": "^0.76.0",
|
||||
"@types/metro-config": "^0.76.0",
|
||||
"@types/qrcode": "^1.4.2",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"memfs": "^4.0.0",
|
||||
"metro-config": "^0.73.7",
|
||||
"metro-config": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"type-fest": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
"@rnx-kit/metro-serializer-esbuild": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@rnx-kit/tools-react-native": "*",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/semver": "^7.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
|
|
|
@ -2,7 +2,7 @@ import type { PluginOptions as CyclicDetectorOptions } from "@rnx-kit/metro-plug
|
|||
import type { Options as DuplicateDetectorOptions } from "@rnx-kit/metro-plugin-duplicates-checker";
|
||||
import type { Options as EsbuildOptions } from "@rnx-kit/metro-serializer-esbuild";
|
||||
import type { AllPlatforms } from "@rnx-kit/tools-react-native/platform";
|
||||
import type { OutputOptions } from "metro/shared/types";
|
||||
import type { OutputOptions } from "metro/src/shared/types";
|
||||
|
||||
export type TypeScriptValidationOptions = {
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
"dependencies": {
|
||||
"@microsoft/eslint-plugin-sdl": "^0.2.0",
|
||||
"@rnx-kit/eslint-plugin": "*",
|
||||
"@typescript-eslint/eslint-plugin": "^6.0.0"
|
||||
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||||
"@typescript-eslint/parser": "^6.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=6.0.0"
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
"jest": "^29.2.1",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "18.2.0",
|
||||
"react-native": "^0.71.0",
|
||||
"react-native": "^0.72.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"depcheck": {
|
||||
|
|
|
@ -47,15 +47,14 @@
|
|||
"@babel/preset-env": "^7.1.6",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/babel__core": "^7.0.0",
|
||||
"@types/connect": "^3.4.36",
|
||||
"@types/jest": "^29.2.1",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/metro-config": "^0.76.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro-config": "^0.73.7",
|
||||
"metro-react-native-babel-preset": "^0.73.7",
|
||||
"metro-config": "^0.76.5",
|
||||
"metro-react-native-babel-preset": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"react-native": "^0.71.0",
|
||||
"react-native": "^0.72.0",
|
||||
"type-fest": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -59,7 +59,7 @@ function injectAssetPlugin(server) {
|
|||
*
|
||||
* @param {Middleware} middleware
|
||||
* @param {Server} server
|
||||
* @returns {Middleware}
|
||||
* @returns {import("connect").NextHandleFunction}
|
||||
*/
|
||||
function enhanceMiddleware(middleware, server) {
|
||||
injectAssetPlugin(server);
|
||||
|
@ -68,6 +68,7 @@ function enhanceMiddleware(middleware, server) {
|
|||
if (url && url.startsWith("/assets/")) {
|
||||
req.url = url.replace(/@@\//g, "../");
|
||||
}
|
||||
// @ts-expect-error Function overloading is a bit wonky with latest Metro
|
||||
return middleware(req, res, next);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -235,24 +235,30 @@ describe("@rnx-kit/metro-config", () => {
|
|||
describe("makeMetroConfig", () => {
|
||||
const consoleWarnSpy = jest.spyOn(require("@rnx-kit/console"), "warn");
|
||||
|
||||
const metroConfigKeys = [
|
||||
"cacheStores",
|
||||
"resolver",
|
||||
"serializer",
|
||||
"server",
|
||||
"symbolicator",
|
||||
"transformer",
|
||||
"watchFolders",
|
||||
"watcher",
|
||||
];
|
||||
|
||||
afterEach(() => {
|
||||
consoleWarnSpy.mockReset();
|
||||
});
|
||||
|
||||
test("returns a default Metro config", async () => {
|
||||
const config = makeMetroConfig();
|
||||
expect(Object.keys(config).sort()).toEqual(metroConfigKeys);
|
||||
expect(Object.keys(config).sort()).toEqual([
|
||||
"cacheStores",
|
||||
"cacheVersion",
|
||||
"maxWorkers",
|
||||
"projectRoot",
|
||||
"reporter",
|
||||
"resetCache",
|
||||
"resolver",
|
||||
"serializer",
|
||||
"server",
|
||||
"stickyWorkers",
|
||||
"symbolicator",
|
||||
"transformer",
|
||||
"transformerPath",
|
||||
"unstable_perfLoggerFactory",
|
||||
"watchFolders",
|
||||
"watcher",
|
||||
]);
|
||||
|
||||
if (!config.resolver) {
|
||||
fail("Expected `config.resolver` to be defined");
|
||||
|
@ -281,7 +287,7 @@ describe("makeMetroConfig", () => {
|
|||
expect(config.resolver.blockList.source).toBe(blockList);
|
||||
|
||||
expect(config.server.enhanceMiddleware).toBe(enhanceMiddleware);
|
||||
expect(config.transformer.assetPlugins).toBeUndefined();
|
||||
expect(config.transformer.assetPlugins).toEqual([]);
|
||||
|
||||
const opts = { dev: false, hot: false };
|
||||
const transformerOptions = await config.transformer.getTransformOptions(
|
||||
|
@ -303,9 +309,18 @@ describe("makeMetroConfig", () => {
|
|||
resetCache: true,
|
||||
});
|
||||
|
||||
expect(Object.keys(config).sort()).toEqual(
|
||||
metroConfigKeys.concat(["projectRoot", "resetCache"]).sort()
|
||||
);
|
||||
expect(Object.keys(config).sort()).toEqual([
|
||||
"cacheStores",
|
||||
"projectRoot",
|
||||
"resetCache",
|
||||
"resolver",
|
||||
"serializer",
|
||||
"server",
|
||||
"symbolicator",
|
||||
"transformer",
|
||||
"watchFolders",
|
||||
"watcher",
|
||||
]);
|
||||
|
||||
expect(config.projectRoot).toBe(__dirname);
|
||||
expect(config.resetCache).toBeTruthy();
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
"@rnx-kit/metro-serializer": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/jest": "^29.2.1",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
"@rnx-kit/metro-serializer": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/jest": "^29.2.1",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/metro-source-map": "^0.76.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
|
|
|
@ -23,10 +23,10 @@ export const bundleGraphWithDuplicates: Graph = {
|
|||
dependencies: new Map<string, Module>([
|
||||
[`${repoRoot}/packages/test-app/lib/src/index.js`, mockModule],
|
||||
[
|
||||
`${repoRoot}/packages/test-app/node_modules/@react-native/polyfills/index.js`,
|
||||
`${repoRoot}/node_modules/@rnx-kit/build/node_modules/chalk/source/index.js`,
|
||||
mockModule,
|
||||
],
|
||||
[`${repoRoot}/node_modules/@react-native/polyfills/index.js`, mockModule],
|
||||
[`${repoRoot}/node_modules/chalk/source/index.js`, mockModule],
|
||||
[`${repoRoot}/node_modules/react-native/index.js`, mockModule],
|
||||
]),
|
||||
importBundleNames: new Set<string>(),
|
||||
|
@ -532,10 +532,10 @@ export const bundleSourceMap: BasicSourceMap = {
|
|||
export const bundleSourceMapWithDuplicates: BasicSourceMap = {
|
||||
version: 3,
|
||||
sources: [
|
||||
`${repoRoot}/packages/test-app/lib/src/index.js`,
|
||||
`${repoRoot}/packages/test-app/node_modules/@react-native/polyfills/index.js`,
|
||||
`${repoRoot}/node_modules/@react-native/polyfills/index.js`,
|
||||
`${repoRoot}/node_modules/@rnx-kit/build/node_modules/chalk/source/index.js`,
|
||||
`${repoRoot}/node_modules/chalk/source/index.js`,
|
||||
`${repoRoot}/node_modules/react-native/index.js`,
|
||||
`${repoRoot}/packages/test-app/lib/src/index.js`,
|
||||
],
|
||||
mappings: "",
|
||||
names: [],
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/metro": "^0.76.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"prettier": "^3.0.0"
|
||||
|
|
|
@ -29,11 +29,10 @@
|
|||
"devDependencies": {
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/metro-resolver": "^0.76.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro-resolver": "^0.73.7",
|
||||
"metro-resolver": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -39,18 +39,15 @@
|
|||
"@rnx-kit/metro-serializer": "*",
|
||||
"@rnx-kit/metro-service": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/metro-config": "^0.76.0",
|
||||
"@types/metro-transform-worker": "^0.76.0",
|
||||
"@types/semver": "^7.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
"metro": "^0.73.7",
|
||||
"metro-react-native-babel-preset": "^0.73.7",
|
||||
"metro": "^0.76.5",
|
||||
"metro-react-native-babel-preset": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "18.2.0",
|
||||
"react-native": "^0.71.0",
|
||||
"react-native": "^0.72.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"depcheck": {
|
||||
|
|
|
@ -35,7 +35,7 @@ describe("metro-serializer-esbuild", () => {
|
|||
bundleEncoding: "utf8",
|
||||
bundleOutput: ".test-output.jsbundle",
|
||||
dev,
|
||||
platform: "native",
|
||||
platform: "ios",
|
||||
resetCache: false,
|
||||
resetGlobalCache: false,
|
||||
sourcemapOutput,
|
||||
|
|
|
@ -25,11 +25,10 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/semver": "^7.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro": "^0.73.7",
|
||||
"metro": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -49,20 +49,15 @@
|
|||
"devDependencies": {
|
||||
"@react-native-community/cli-types": "^10.0.0",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/metro": "^0.76.0",
|
||||
"@types/metro-babel-transformer": "^0.76.0",
|
||||
"@types/metro-config": "^0.76.0",
|
||||
"@types/metro-core": "^0.76.0",
|
||||
"@types/metro-resolver": "^0.76.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro": "^0.73.7",
|
||||
"metro-config": "^0.73.7",
|
||||
"metro-core": "^0.73.7",
|
||||
"metro-react-native-babel-transformer": "^0.73.7",
|
||||
"metro-resolver": "^0.73.7",
|
||||
"metro-runtime": "^0.73.7",
|
||||
"metro": "^0.76.5",
|
||||
"metro-config": "^0.76.5",
|
||||
"metro-core": "^0.76.5",
|
||||
"metro-react-native-babel-transformer": "^0.76.5",
|
||||
"metro-resolver": "^0.76.5",
|
||||
"metro-runtime": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -4,9 +4,9 @@ import { error, info } from "@rnx-kit/console";
|
|||
import chalk from "chalk";
|
||||
import fs from "fs";
|
||||
import type { ConfigT } from "metro-config";
|
||||
import type { BundleOptions, OutputOptions } from "metro/shared/types";
|
||||
import Server from "metro/src/Server";
|
||||
import Bundle from "metro/src/shared/output/bundle";
|
||||
import type { BundleOptions, OutputOptions } from "metro/src/shared/types";
|
||||
import path from "path";
|
||||
import { saveAssets } from "./asset";
|
||||
import { saveAssetsAndroid } from "./asset/android";
|
||||
|
|
|
@ -36,11 +36,12 @@
|
|||
"devDependencies": {
|
||||
"@babel/core": "^7.1.6",
|
||||
"@babel/preset-env": "^7.1.6",
|
||||
"@react-native/metro-config": "^0.72.0",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"eslint": "^8.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "18.2.0",
|
||||
"react-native": "^0.71.0",
|
||||
"react-native": "^0.72.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
@ -53,7 +54,7 @@
|
|||
],
|
||||
"requirements": {
|
||||
"development": [
|
||||
"react-native@0.71"
|
||||
"react-native@0.72"
|
||||
],
|
||||
"production": [
|
||||
"react-native@>=0.62 <1.0"
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"react": "18.2.0",
|
||||
"react-native": "^0.71.0",
|
||||
"react-native-macos": "^0.71.0",
|
||||
"react-native-windows": "^0.71.0"
|
||||
"react-native": "^0.72.0",
|
||||
"react-native-macos": "^0.72.0",
|
||||
"react-native-windows": "^0.72.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.9",
|
||||
|
@ -36,6 +36,7 @@
|
|||
"@babel/plugin-transform-react-jsx-source": "^7.0.0",
|
||||
"@babel/preset-env": "^7.1.6",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@react-native/metro-config": "^0.72.0",
|
||||
"@rnx-kit/babel-preset-metro-react-native": "*",
|
||||
"@rnx-kit/cli": "*",
|
||||
"@rnx-kit/metro-config": "*",
|
||||
|
@ -52,9 +53,9 @@
|
|||
"@types/react": "^18.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest-cli": "^29.2.1",
|
||||
"metro-react-native-babel-preset": "^0.73.7",
|
||||
"metro-react-native-babel-preset": "^0.76.5",
|
||||
"prettier": "^3.0.0",
|
||||
"react-native-test-app": "^2.2.1",
|
||||
"react-native-test-app": "^2.5.5",
|
||||
"react-test-renderer": "18.2.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
@ -185,7 +186,7 @@
|
|||
"@rnx-kit/scripts/align-deps-preset.js"
|
||||
],
|
||||
"requirements": [
|
||||
"react-native@0.71"
|
||||
"react-native@0.72"
|
||||
],
|
||||
"capabilities": [
|
||||
"core-android",
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
"@rnx-kit/metro-serializer": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@types/jest": "^29.2.1",
|
||||
"@types/metro-source-map": "^0.76.0",
|
||||
"@types/yargs": "^16.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"jest": "^29.2.1",
|
||||
|
|
|
@ -1,16 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
const metroTypesVersion = "^0.76.0";
|
||||
|
||||
const dependencies = {
|
||||
jest: "^29.2.1",
|
||||
metro: metroTypesVersion,
|
||||
"metro-babel-transformer": metroTypesVersion,
|
||||
"metro-config": metroTypesVersion,
|
||||
"metro-core": metroTypesVersion,
|
||||
"metro-resolver": metroTypesVersion,
|
||||
"metro-source-map": metroTypesVersion,
|
||||
"metro-transform-worker": metroTypesVersion,
|
||||
node: "^18.0.0",
|
||||
yargs: "^16.0.0",
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ cli({
|
|||
"align-deps-preset.js"
|
||||
),
|
||||
],
|
||||
requirements: ["react-native@0.71"],
|
||||
requirements: ["react-native@0.72"],
|
||||
write: process.argv.includes("--write"),
|
||||
"exclude-packages": ["@rnx-kit/build", "@rnx-kit/metro-plugin-typescript"],
|
||||
});
|
||||
|
|
1294
yarn.lock
1294
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче