Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions benchmarkNodeVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ const runners = {
const pathEnv = pathKey()
env.PNPM_HOME = home
env[pathEnv] = [path.join(home, 'bin'), baseEnv[pathEnv]].join(path.delimiter)
// What these scenarios measure is pnpm's per-project runtime
// switching, and a `globalShims` override in the inherited
// environment reaches into both halves of it: at link time it makes
// `pnpm runtime set` write a plain link instead of the switching
// shim, and at run time it turns an already-written shim's dispatch
// off. CI is such an environment — pnpm/setup exports
// `PNPM_CONFIG_GLOBAL_SHIMS={"node":false}` to keep the runtime it
// installed authoritative for the job. Empty means unset to pnpm,
// and assignment is the only way to mask a value the base
// environment holds through the prototype chain.
env.PNPM_CONFIG_GLOBAL_SHIMS = ''
env.pnpm_config_global_shims = ''
return env
},
prepare,
Expand Down