mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-30 04:52:04 -04:00
feat(config)!: exclude non-option from rawConfig
This commit is contained in:
@@ -377,7 +377,10 @@ export async function getConfig (opts: {
|
||||
for (const [key, value] of Object.entries(newSettings)) {
|
||||
// @ts-expect-error
|
||||
pnpmConfig[key] = value
|
||||
pnpmConfig.rawConfig[kebabCase(key)] = value
|
||||
const kebabKey = kebabCase(key)
|
||||
if (kebabKey in rcOptionsTypes) {
|
||||
pnpmConfig.rawConfig[kebabCase(key)] = value
|
||||
}
|
||||
}
|
||||
pnpmConfig.catalogs = getCatalogsFromWorkspaceManifest(workspaceManifest)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user