Skip to content

Commit 8a52ae8

Browse files
committed
debug: capture npm config inside playwright test runner context
1 parent 5a5d00b commit 8a52ae8

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

integration/models/application.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,16 @@ export const application = (
5050
// Use pkglab add to pin @clerk/* packages to local registry versions and install
5151
const clerkDeps = config.clerkDependencies;
5252
if (clerkDeps.length > 0) {
53-
await run(`pkglab add ${clerkDeps.join(' ')}`, { cwd: appDirPath, log });
53+
// Debug: capture environment that will be inherited by pkglab/npm
54+
log(`[debug] appDirPath: ${appDirPath}`);
55+
log(`[debug] npm_config env vars:`);
56+
for (const [k, v] of Object.entries(process.env)) {
57+
if (k.toLowerCase().startsWith('npm_config') || k.toLowerCase().includes('registry')) {
58+
log(`[debug] ${k}=${v}`);
59+
}
60+
}
61+
await run('npm config get registry', { cwd: appDirPath, log });
62+
await run(`pkglab add ${clerkDeps.join(' ')} --verbose`, { cwd: appDirPath, log });
5463
} else {
5564
await run(scripts.setup, { cwd: appDirPath, log });
5665
}

0 commit comments

Comments
 (0)