Compare commits
2 commits
master
...
fix/add-pn
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e9503d0fb |
||
|
|
c753b811d8 |
3 changed files with 6 additions and 5 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -44,6 +44,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||||
if (exitCode === 0) {
|
if (exitCode === 0) {
|
||||||
const pnpmHome = path.join(dest, 'node_modules/.bin')
|
const pnpmHome = path.join(dest, 'node_modules/.bin')
|
||||||
addPath(pnpmHome)
|
addPath(pnpmHome)
|
||||||
|
addPath(path.join(pnpmHome, 'bin'))
|
||||||
exportVariable('PNPM_HOME', pnpmHome)
|
exportVariable('PNPM_HOME', pnpmHome)
|
||||||
}
|
}
|
||||||
return exitCode
|
return exitCode
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@ export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'no
|
||||||
|
|
||||||
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
|
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
|
||||||
...process.env,
|
...process.env,
|
||||||
PATH: getBinDest(inputs) + path.delimiter + process.env.PATH,
|
PATH: path.join(getBinDest(inputs), 'bin') + path.delimiter + getBinDest(inputs) + path.delimiter + process.env.PATH,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue