From 5fa18ec2d585c8b4e4f389968b7925fbaedf35a4 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Fri, 30 Aug 2024 16:25:25 -0700 Subject: [PATCH 1/2] fix: Properly import `npm-registry-fetch` in `react-native-macos-init` --- packages/react-native-macos-init/src/cli.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native-macos-init/src/cli.ts b/packages/react-native-macos-init/src/cli.ts index ee62a8a80c80c3..7ff3717322af56 100644 --- a/packages/react-native-macos-init/src/cli.ts +++ b/packages/react-native-macos-init/src/cli.ts @@ -13,8 +13,7 @@ import * as validUrl from 'valid-url'; import * as prompts from 'prompts'; import * as findUp from 'find-up'; import * as chalk from 'chalk'; -// @ts-ignore -import npmFetch from 'npm-registry'; +import * as npmFetch from 'npm-registry-fetch'; const npmConfReg = execSync('npm config get registry').toString().trim(); const NPM_REGISTRY_URL = validUrl.isUri(npmConfReg) From 5b8f9fab1b9ba10e4a65a6b021baa53f53d7d83a Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Fri, 30 Aug 2024 16:34:14 -0700 Subject: [PATCH 2/2] Change files --- ...native-macos-init-f8ea158b-582a-420c-8fb7-8a1f75eb2cbe.json} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename change/{react-native-macos-init-27af1077-e8dd-498f-9813-622bd400487c.json => react-native-macos-init-f8ea158b-582a-420c-8fb7-8a1f75eb2cbe.json} (60%) diff --git a/change/react-native-macos-init-27af1077-e8dd-498f-9813-622bd400487c.json b/change/react-native-macos-init-f8ea158b-582a-420c-8fb7-8a1f75eb2cbe.json similarity index 60% rename from change/react-native-macos-init-27af1077-e8dd-498f-9813-622bd400487c.json rename to change/react-native-macos-init-f8ea158b-582a-420c-8fb7-8a1f75eb2cbe.json index 0e16b789592906..bd1fdf8776a767 100644 --- a/change/react-native-macos-init-27af1077-e8dd-498f-9813-622bd400487c.json +++ b/change/react-native-macos-init-f8ea158b-582a-420c-8fb7-8a1f75eb2cbe.json @@ -1,6 +1,6 @@ { "type": "patch", - "comment": "Update for Yarn 3+", + "comment": "fix: Properly import `npm-registry-fetch` in `react-native-macos-init`", "packageName": "react-native-macos-init", "email": "sanajmi@microsoft.com", "dependentChangeType": "patch"