Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 1 addition & 2 deletions packages/react-native-macos-init/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down