Skip to content

Commit d717fbc

Browse files
authored
refactor: use killProcess from @netlify/dev-utils (#7472)
* Correct import groupings * refactor: remove unused process.ts file
1 parent 7d8a0ee commit d717fbc

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

tests/integration/commands/functions-serve/functions-serve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { killProcess } from '@netlify/dev-utils'
12
import js from 'dedent'
23
import execa from 'execa'
34
import getPort from 'get-port'
@@ -6,7 +7,6 @@ import { describe, test } from 'vitest'
67
import waitPort from 'wait-port'
78

89
import { cliPath } from '../../utils/cli-path.js'
9-
import { killProcess } from '../../utils/process.js'
1010
import { type SiteBuilder, withSiteBuilder } from '../../utils/site-builder.js'
1111
import { InvokeFunctionResult } from '../../../../src/lib/functions/runtimes/index.js'
1212

tests/integration/utils/dev-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import path from 'node:path'
22
import process from 'node:process'
33

4+
import { killProcess } from '@netlify/dev-utils'
45
import execa from 'execa'
56
import getPort from 'get-port'
67
import pTimeout from 'p-timeout'
78

89
import { cliPath } from './cli-path.js'
910
import { handleQuestions } from './handle-questions.js'
10-
import { killProcess } from './process.js'
1111

1212
export const getExecaOptions = ({ cwd, env }: { cwd: string; env: NodeJS.ProcessEnv }) => {
1313
// Unused vars here are in order to omit LANg and LC_ALL from envs

tests/integration/utils/process.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)