feat(config)!: exclude non-option from rawConfig

This commit is contained in:
khai96_
2025-08-21 03:11:20 +07:00
parent c6117b993a
commit a79f72dbfb

View File

@@ -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)
}