Skip to content

Commit 11ba342

Browse files
committed
fmt
1 parent 847a737 commit 11ba342

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

dist/index.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { setFailed, saveState, getState } from '@actions/core'
22
import getInputs from './inputs'
3-
import setOutputs from './outputs'
43
import installPnpm from './install-pnpm'
4+
import setOutputs from './outputs'
55
import pnpmInstall from './pnpm-install'
66
import pruneStore from './pnpm-store-prune'
77

src/inputs/run-install.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import process from 'process'
2-
import { load } from 'js-yaml'
3-
import Ajv from 'ajv'
41
import { getInput, error, InputOptions } from '@actions/core'
2+
import Ajv from 'ajv'
3+
import { load } from 'js-yaml'
4+
import process from 'process'
55
import runInstallSchema from './run-install-input.schema.json'
66

77
export interface RunInstall {

src/install-pnpm/run.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { addPath, exportVariable } from '@actions/core'
2+
import fetch from '@pnpm/fetch'
23
import { spawn } from 'child_process'
3-
import { execPath } from 'process'
4-
import path from 'path'
54
import { remove, ensureFile, writeFile, readFile } from 'fs-extra'
6-
import fetch from '@pnpm/fetch'
5+
import path from 'path'
6+
import { execPath } from 'process'
77
import { Inputs } from '../inputs'
88

99
export async function runSelfInstaller(inputs: Inputs): Promise<number> {

src/pnpm-install/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { spawnSync } from 'child_process'
21
import { setFailed, startGroup, endGroup } from '@actions/core'
2+
import { spawnSync } from 'child_process'
33
import { Inputs } from '../inputs'
44
import { patchPnpmEnv } from '../utils'
55

src/pnpm-store-prune/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { spawnSync } from 'child_process'
21
import { warning, startGroup, endGroup } from '@actions/core'
2+
import { spawnSync } from 'child_process'
33
import { Inputs } from '../inputs'
44
import { patchPnpmEnv } from '../utils'
55

@@ -13,7 +13,7 @@ export function pruneStore(inputs: Inputs) {
1313
const { error, status } = spawnSync('pnpm', ['store', 'prune'], {
1414
stdio: 'inherit',
1515
shell: true,
16-
env: patchPnpmEnv(inputs)
16+
env: patchPnpmEnv(inputs),
1717
})
1818
endGroup()
1919

src/utils/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import process from 'process'
21
import path from 'path'
2+
import process from 'process'
33
import { Inputs } from '../inputs'
44

55
export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'node_modules', '.bin')
66

77
export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({
88
...process.env,
9-
PATH: getBinDest(inputs) + path.delimiter + process.env.PATH
9+
PATH: getBinDest(inputs) + path.delimiter + process.env.PATH,
1010
})

0 commit comments

Comments
 (0)