mirror of
https://github.com/pnpm/action-setup.git
synced 2025-04-25 11:02:27 +08:00
11 lines
346 B
TypeScript
11 lines
346 B
TypeScript
import process from 'process'
|
|
import path from 'path'
|
|
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
|
|
})
|