From 11ba3424e0a03368f714f5b316f9af6dc0f4e753 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Wed, 23 Feb 2022 10:07:15 +0700 Subject: [PATCH] fmt --- dist/index.js | Bin 444119 -> 444119 bytes src/index.ts | 2 +- src/inputs/run-install.ts | 6 +++--- src/install-pnpm/run.ts | 8 ++++---- src/pnpm-install/index.ts | 2 +- src/pnpm-store-prune/index.ts | 4 ++-- src/utils/index.ts | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/index.js b/dist/index.js index ca73795467e2136cdf1c24f644b015b0ac73e9ef..440697a2b1671ffdbd117c9033b8cbd2dbe11a8b 100644 GIT binary patch delta 575 zcmccKD}B9Jdct>cLqiiIO-<|M{Ji24g+$vtjUo*rb5qO7e2ga;^Cw?tG-piQ%+Dmn zJXxDrM8m?w*aEIN-?m7@*v!}xRkOK~g^}juRMrr!e7&6f#1u^p4FjD_z4X))&%A=t z5>1U%ogBCkMYegV15{!wHe{orI%`8bR(k^bkFV=ovjB)#YF{YT;ES46A z=G*O=nA;h_%;^_-nEl%&S(vv=van1($6{(^YO#I8C6;0XW*~E#3ya+JZhcm+c0Xp; K?S9N`oreK5_Ov7b delta 593 zcmccKD}B9Jdct>cBXd(rO-<|M{Ji24g+$vtjUo+0LldLPe2ga;6DMD1G-u4;%+Dmn zYy*-pH?lB-D=xMz(l9nNwuEWU2Wz%4F}8p!Ndze|FgBc=${M0ote2CYn4+nnVW5+! zm!4YUnO9I+qN$OplLJ>@WSf^-u8=?ZF>4&qawj%B#>~x)Yz53dMH)s17KR9$piV(` zwt=BJ+@w;V&8CLtW-u)|V86qLw&ijMn%>IgCRVCfl$x7gma3^yq-mX4o|stz zbX@7=hg=ejrIUYgS#lNY6&ECy=V@x>PqyXGV9c4kjQcWBZxzoA#?sBnyur+@V0TSc zV3nMFMc_JP=HxYk){J?RUkJKQZsQP~Y%jzH6mt_&1dZ1iYIDU{l3Jgf6%siLW;u70bTf5@PE@JUOGna^| zi5Banq^2d7=9B>GoXp(JlGGyY%;x)I?f1nPx8E0Iih0dqYGi7$-JXfLopHJ{Gpo#W z1ubT->2Loq3Ag`eX5RjvnPu%c7DFRb { diff --git a/src/pnpm-install/index.ts b/src/pnpm-install/index.ts index 821e114..a3188ad 100644 --- a/src/pnpm-install/index.ts +++ b/src/pnpm-install/index.ts @@ -1,5 +1,5 @@ -import { spawnSync } from 'child_process' import { setFailed, startGroup, endGroup } from '@actions/core' +import { spawnSync } from 'child_process' import { Inputs } from '../inputs' import { patchPnpmEnv } from '../utils' diff --git a/src/pnpm-store-prune/index.ts b/src/pnpm-store-prune/index.ts index 792552a..5b1a2dd 100644 --- a/src/pnpm-store-prune/index.ts +++ b/src/pnpm-store-prune/index.ts @@ -1,5 +1,5 @@ -import { spawnSync } from 'child_process' import { warning, startGroup, endGroup } from '@actions/core' +import { spawnSync } from 'child_process' import { Inputs } from '../inputs' import { patchPnpmEnv } from '../utils' @@ -13,7 +13,7 @@ export function pruneStore(inputs: Inputs) { const { error, status } = spawnSync('pnpm', ['store', 'prune'], { stdio: 'inherit', shell: true, - env: patchPnpmEnv(inputs) + env: patchPnpmEnv(inputs), }) endGroup() diff --git a/src/utils/index.ts b/src/utils/index.ts index b8f1b71..efc5ea1 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,10 +1,10 @@ -import process from 'process' 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 + PATH: getBinDest(inputs) + path.delimiter + process.env.PATH, })