mirror of
https://github.com/pnpm/action-setup.git
synced 2025-07-08 02:09:20 +08:00
11 lines
347 B
TypeScript
11 lines
347 B
TypeScript
import path from 'path'
|
|
import process from 'process'
|
|
import { Inputs } from '../inputs'
|
|
|
|
export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'node_modules', '.bin')
|
|
|
|
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
|
|
...process.env,
|
|
PATH: getBinDest(inputs) + path.delimiter + process.env.PATH,
|
|
})
|