Some checks failed
CI / Linting (Biome) (push) Failing after 41s
CI / Tests (push) Successful in 5m27s
CI / Type Check (adzuna-extractor) (push) Successful in 1m9s
CI / Type Check (gradcracker-extractor) (push) Successful in 1m13s
CI / Type Check (hiringcafe-extractor) (push) Successful in 1m9s
CI / Type Check (orchestrator) (push) Successful in 1m24s
CI / Type Check (startupjobs-extractor) (push) Successful in 1m8s
CI / Type Check (ukvisajobs-extractor) (push) Successful in 1m9s
CI / Documentation (push) Successful in 1m59s
Add blockedCountries in Settings so pipeline discovery drops jobs whose location mentions listed countries (existing discovered rows are kept). Document the feature, fix smoke tsconfig inheritance for nested extractors, and run smoke via an absolute-tsconfig wrapper. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
586 B
TypeScript
21 lines
586 B
TypeScript
/** Drop repo-root smoke `tsx --tsconfig` settings so nested extractor `tsx` runs use package tsconfig. */
|
|
export function envForExtractorSubprocess(
|
|
base: NodeJS.ProcessEnv,
|
|
): NodeJS.ProcessEnv {
|
|
const env = { ...base };
|
|
delete env.TSX_TSCONFIG;
|
|
delete env.TSX_TSCONFIG_PATH;
|
|
const nodeOptions = env.NODE_OPTIONS;
|
|
if (
|
|
typeof nodeOptions === "string" &&
|
|
nodeOptions.includes("tsconfig.smoke")
|
|
) {
|
|
env.NODE_OPTIONS = nodeOptions
|
|
.split(/\s+/)
|
|
.filter((part) => !part.includes("tsconfig.smoke"))
|
|
.join(" ")
|
|
.trim();
|
|
}
|
|
return env;
|
|
}
|