feat(config)!: exclude non-option from rawConfig
This commit is contained in:
1 parent
c6117b993a
commit
a79f72dbfb
1 file changed
+4
-1
@@ -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