Fix pruneStore

This commit is contained in:
khai96_ 2020-05-09 21:41:25 +07:00
parent 2546768411
commit b1febf84ed
4 changed files with 14 additions and 7 deletions

8
src/utils/index.ts Normal file
View file

@ -0,0 +1,8 @@
import process from 'process'
import path from 'path'
import { Inputs } from '../inputs'
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
...process.env,
PATH: inputs.binDest + path.delimiter + process.env.PATH
})