-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(npm): support yarn catalogs via yarn-plugin-catalogs #37293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(npm): support yarn catalogs via yarn-plugin-catalogs #37293
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nearly done 🤗
getSiblingFileName, | ||
readLocalFile, | ||
} from '../../../../util/fs'; | ||
import { ensureLocalPath } from '../../../../util/fs/util'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { ensureLocalPath } from '../../../../util/fs/util'; |
wrong import path anyways
Co-authored-by: Michael Kriese <[email protected]>
const res = await npmExtract.extractPackageFile( | ||
pJsonStr, | ||
'package.json', | ||
'.yarnrc.yml', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good spot I changed one test to much after the refactoring. Will revert it
catalogs: YarnCatalogs | undefined, | ||
packageFile: string, | ||
hasPackageManager: boolean, | ||
): Promise<PackageFileContent<NpmManagerData> | null> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when is null
being returned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch implementation changed and now it isn't returning it any more
Co-authored-by: RahulGautamSingh <[email protected]>
Co-authored-by: RahulGautamSingh <[email protected]>
Changes
Context
Support
catalogs
for yarn via the plugin yarn-plugin-catalogs. See short discussion -> #36928Note: informed the plugin authors -> toss/yarn-plugin-catalogs#19
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: