MCPcopy Create free account
hub / github.com/babel/babel / env

Function env

Makefile.source.ts:82–87  ·  view source on GitHub ↗
(fun: () => void, env: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

80}
81
82function env(fun: () => void, env: NodeJS.ProcessEnv) {
83 const envBak = process.env;
84 process.env = { ...envBak, ...env };
85 fun();
86 process.env = envBak;
87}
88
89/**
90 * CLEAN

Callers 7

Makefile.source.tsFile · 0.85
prepublishFunction · 0.85
eslintCheckFunction · 0.85
eslintFixFunction · 0.85
makeChainWalkerFunction · 0.85
makeChainWalkerFunction · 0.85
makeChainWalkerFunction · 0.85

Calls 1

funFunction · 0.85

Tested by

no test coverage detected