From a79f72dbfba8d9a2e209a17fceaffc5a2ac6d81e Mon Sep 17 00:00:00 2001 From: khai96_ Date: Thu, 21 Aug 2025 03:11:20 +0700 Subject: [PATCH] feat(config)!: exclude non-option from `rawConfig` --- config/config/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config/src/index.ts b/config/config/src/index.ts index f7a07e337a..e83d5fcdb2 100644 --- a/config/config/src/index.ts +++ b/config/config/src/index.ts @@ -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) }