Skip to content

Commit

Permalink
refactor: upgrade fs-extra
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 16, 2024
1 parent cf8c096 commit 3a200db
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 40 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
"@swc/core": "1.2.218",
"@types/debug": "4.1.7",
"@types/flat": "5.0.2",
"@types/fs-extra": "9.0.13",
"@types/fs-extra": "11.0.4",
"@types/node": "14.18.12",
"@types/resolve": "1.20.1",
"colorette": "2.0.16",
"consola": "2.15.3",
"flat": "5.0.2",
"fs-extra": "10.0.0",
"fs-extra": "11.2.0",
"postcss": "8.4.12",
"postcss-simple-vars": "6.0.3",
"prettier": "3.3.3",
Expand Down
86 changes: 51 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from 'vitest'
import path from 'path'
import fs from 'fs-extra'
import fs from 'fs'
import waitForExpect from 'wait-for-expect'
import { debouncePromise } from '../src/utils'
import { getTestName, run } from './utils'
Expand Down
4 changes: 2 additions & 2 deletions vitest-global.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import execa from 'execa'
import path from 'path'
import fs from 'fs-extra'
import fs from 'fs/promises'

export default async function setup() {
const testDir = path.resolve(__dirname, 'test')
const cacheDir = path.resolve(testDir, '.cache')
await fs.remove(cacheDir)
await fs.rm(cacheDir, { recursive: true, force: true })
console.log(`Installing dependencies in ./test folder`)
await execa('pnpm', ['i'], { cwd: testDir })
console.log(`Done... start testing..`)
Expand Down

0 comments on commit 3a200db

Please sign in to comment.