Skip to content

Commit 548e2bb

Browse files
authored
npmPackageName should be resolved from project root, not from cli-plugin-metro (#1996)
* fix: npmPackageName should be resolved from project root, not from cli-plugin-metro * fix linting * Older deasync fails to yarn install on windows machines with newer visual studio
1 parent 1e56ce7 commit 548e2bb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/cli-plugin-metro/src/tools/loadMetroConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function getOverrideConfig(ctx: ConfigLoadingContext): InputConfigT {
5656
require.resolve(
5757
`${ctx.platforms[platform]
5858
.npmPackageName!}/Libraries/Core/InitializeCore`,
59+
{paths: [ctx.root]},
5960
),
6061
),
6162
],

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5301,9 +5301,9 @@ dayjs@^1.8.15:
53015301
integrity sha512-1kbWK0hziklUHkGgiKr7xm59KwAg/K3Tp7H/8X+f58DnNCwY3pKYjOCJpIlVs125FRBukGVZdKZojC073D0IeQ==
53025302

53035303
deasync@^0.1.14:
5304-
version "0.1.19"
5305-
resolved "https://registry.yarnpkg.com/deasync/-/deasync-0.1.19.tgz#e7ea89fcc9ad483367e8a48fe78f508ca86286e8"
5306-
integrity sha512-oh3MRktfnPlLysCPpBpKZZzb4cUC/p0aA3SyRGp15lN30juJBTo/CiD0d4fR+f1kBtUQoJj1NE9RPNWQ7BQ9Mg==
5304+
version "0.1.28"
5305+
resolved "https://registry.yarnpkg.com/deasync/-/deasync-0.1.28.tgz#9b447b79b3f822432f0ab6a8614c0062808b5ad2"
5306+
integrity sha512-QqLF6inIDwiATrfROIyQtwOQxjZuek13WRYZ7donU5wJPLoP67MnYxA6QtqdvdBy2mMqv5m3UefBVdJjvevOYg==
53075307
dependencies:
53085308
bindings "^1.5.0"
53095309
node-addon-api "^1.7.1"

0 commit comments

Comments
 (0)