mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
fix(yarn): sub package use root npmrc
This commit is contained in:
parent
7eb2c09b6e
commit
3de02c37e4
3 changed files with 7 additions and 0 deletions
|
@ -168,6 +168,8 @@ Array [
|
|||
exports[`manager/npm/extract/monorepo .extractPackageFile() uses yarn workspaces package settings without lerna 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"npmrc": "@org:registry=//registry.some.org
|
||||
",
|
||||
"packageFile": "package.json",
|
||||
"yarnWorkspacesPackages": "packages/*",
|
||||
},
|
||||
|
@ -178,6 +180,8 @@ Array [
|
|||
"lernaJsonFile": undefined,
|
||||
},
|
||||
"npmLock": undefined,
|
||||
"npmrc": "@org:registry=//registry.some.org
|
||||
",
|
||||
"packageFile": "packages/a/package.json",
|
||||
"packageJsonName": "@org/a",
|
||||
"yarnLock": "yarn.lock",
|
||||
|
|
|
@ -139,6 +139,7 @@ describe(getName(), () => {
|
|||
const packageFiles = [
|
||||
{
|
||||
packageFile: 'package.json',
|
||||
npmrc: '@org:registry=//registry.some.org\n',
|
||||
yarnWorkspacesPackages: 'packages/*',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -17,6 +17,7 @@ export async function detectMonorepos(
|
|||
packageFile,
|
||||
npmLock,
|
||||
yarnLock,
|
||||
npmrc,
|
||||
managerData = {},
|
||||
lernaClient,
|
||||
lernaPackages,
|
||||
|
@ -52,6 +53,7 @@ export async function detectMonorepos(
|
|||
subPackage.npmLock = subPackage.npmLock || npmLock;
|
||||
if (subPackage.yarnLock) {
|
||||
subPackage.hasYarnWorkspaces = !!yarnWorkspacesPackages;
|
||||
subPackage.npmrc = subPackage.npmrc || npmrc;
|
||||
}
|
||||
if (!updateInternalDeps) {
|
||||
subPackage.deps?.forEach((dep) => {
|
||||
|
|
Loading…
Reference in a new issue