From e1bd3c6b137e77aba2731965ab8d5d0e88968423 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 8 May 2020 13:47:46 +0700 Subject: [PATCH] Use execPath --- dist/index.js | Bin 387378 -> 387331 bytes src/index.ts | 6 +----- src/install/run.ts | 3 ++- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3bd070c894d47d8bf8c7628cf449dd40c2dcad74..1e2192bf8c4c20608cfcd9ac298a1f1656db24e6 100644 GIT binary patch delta 575 zcmYk2&rcIU6vs2Wa_|R{lZ^>Vvq7`t(xyUoyReK6X*&stu4bu?$#hGXb--Wkc7ISB zsTWP;W>gLnIC${l5hEu17wFk=Gamf|Or)G~wkmLVc{AVldEa?&KJBGm?4>?l&TQs0 z!-c|3tyYJU(Q$$_My{e5A;C71YgYxKDjxvHLmmd>r82ytVW5qK_)sHVvAq5haVZ@o-u85psJypB<_o z1$>s$0OM�|ns6zcla$NEqcNOdfYpF6o$u>lj6(Ya1rQS0`1~!0f#a;7Fq46KecJ z2VWcK@|p?_*K37QI$-a%fO^Ks(k^xHIMD<4eG9wT3K+&{i7b$uZ5vMsX0Q9g1%TOyzA!z8 zQCD7=pwLJVJ{GUr{EJO;Q&DV$*#zv*IUl+COOBlDB_>+t_>9*X3atWW2UlyIPExnssfLH0gfc2=K6GBm=Y fv&+s`#i_I23E@^%90Sfqvnuj96*sFxU*7%!KQXzx delta 676 zcmZXP&1(}u7>AjS=|w~lGzhhgOO#!=8)771ZYLomSrsIfG!2Ex=ELnYjn>_r-E9&~ zilAV~QF~b0qyIpQ6&AefAJD5F1g}C5wP&48H3U4o%*->-`wW&}BakGC+2Z;$-hifaW5`?`j`n~%+GBdFewl_7XXb<{UYFCb!1r5RC!Eig zv-Lu$^ti-tmthV)L$XUwn42I(;1jfrB8notpzjG#m%1D6P0Z<{$QRKgK~NxZKK)`+ z^91&|W0FiICPW>Rc*JweaJOk{ZLP&M3af=&eJNXh5DfJV zQ&+KNg>et7OHF%YyYau8E#0qBwHa { diff --git a/src/install/run.ts b/src/install/run.ts index 1312b6f..9f47c95 100644 --- a/src/install/run.ts +++ b/src/install/run.ts @@ -1,9 +1,10 @@ import { spawn } from 'child_process' +import { execPath } from 'process' import { downloadSelfInstaller } from '../self-installer' import { Inputs } from '../inputs' export function runSelfInstaller(inputs: Inputs): Promise { - const cp = spawn('node', { + const cp = spawn(execPath, { env: { PNPM_VERSION: inputs.version, PNPM_DEST: inputs.dest,