Skip to content

Commit 6d5af3f

Browse files
authored
chore(deps): remove 2 unnecessary dev deps (#7025)
1 parent f74c6c6 commit 6d5af3f

File tree

4 files changed

+8
-73
lines changed

4 files changed

+8
-73
lines changed

package-lock.json

Lines changed: 0 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@
182182
"@netlify/eslint-config-node": "7.0.1",
183183
"@netlify/functions": "3.0.0",
184184
"@sindresorhus/slugify": "2.2.1",
185-
"@types/fs-extra": "11.0.4",
186185
"@types/inquirer": "9.0.7",
187186
"@types/jsonwebtoken": "9.0.8",
188187
"@types/lodash": "4.17.15",
@@ -198,7 +197,6 @@
198197
"eslint-plugin-sort-destructure-keys": "2.0.0",
199198
"eslint-plugin-workspace": "file:./tools/lint-rules",
200199
"form-data": "4.0.1",
201-
"fs-extra": "11.3.0",
202200
"husky": "9.1.7",
203201
"is-ci": "4.1.0",
204202
"nock": "14.0.0",

tests/integration/utils/fixture.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { cp } from 'fs/promises'
12
import { join } from 'path'
23
import { fileURLToPath } from 'url'
34

45
import type { NodeOptions } from 'execa'
5-
import { copy } from 'fs-extra'
66
import { temporaryDirectory } from 'tempy'
77
import { afterAll, afterEach, beforeAll, beforeEach, describe } from 'vitest'
88

@@ -75,7 +75,10 @@ export class Fixture {
7575
static async create(fixturePath: string, options?: FixtureSettings): Promise<Fixture> {
7676
const fixture = new Fixture(fixturePath, temporaryDirectory(), options)
7777

78-
await copy(join(FIXTURES_DIRECTORY, fixturePath), fixture.directory)
78+
await cp(join(FIXTURES_DIRECTORY, fixturePath), fixture.directory, {
79+
recursive: true,
80+
verbatimSymlinks: true,
81+
})
7982

8083
return fixture
8184
}

tests/unit/utils/get-global-config.test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { existsSync } from 'fs'
2-
import { mkdir, readFile, rm, writeFile } from 'fs/promises'
2+
import { cp, mkdir, readFile, rm, writeFile } from 'fs/promises'
33
import os from 'os'
44
import { join } from 'path'
55

6-
import { copy } from 'fs-extra'
76
import { afterAll, beforeAll, beforeEach, expect, test } from 'vitest'
87

98
import { getLegacyPathInHome, getPathInHome } from '../../../dist/lib/settings.js'
@@ -20,7 +19,7 @@ const tmpConfigBackupPath = join(os.tmpdir(), `netlify-config-backup-${Date.now(
2019
beforeAll(async () => {
2120
// backup current user config directory
2221
if (existsSync(configPath)) {
23-
await copy(configPath, tmpConfigBackupPath)
22+
await cp(configPath, tmpConfigBackupPath, { recursive: true })
2423
}
2524
})
2625

@@ -34,7 +33,7 @@ afterAll(async () => {
3433
// Restore user config directory if exists
3534
if (existsSync(tmpConfigBackupPath)) {
3635
await mkdir(configPath)
37-
await copy(tmpConfigBackupPath, configPath)
36+
await cp(tmpConfigBackupPath, configPath, { recursive: true })
3837
// Remove tmp backup
3938
await rm(tmpConfigBackupPath, { force: true, recursive: true })
4039
}

0 commit comments

Comments
 (0)