Skip to content

Commit

Permalink
fix: update dependency fs-extra to v10 (#46)
Browse files Browse the repository at this point in the history
* fix: update dependency fs-extra to v10

* fix: fix empty path

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: dword <[email protected]>
  • Loading branch information
3 people authored May 4, 2021
1 parent f26716a commit fe57cdf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@dword-design/functions": "^4.0.0",
"fs-extra": "^9.0.0"
"fs-extra": "^10.0.0"
},
"devDependencies": {
"@dword-design/base": "^8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ensureDir, outputFile } from 'fs-extra'
import P from 'path'

const outputFiles = async (...args) => {
const path = typeof args[0] === 'string' ? args[0] : ''
const path = (typeof args[0] === 'string' ? args[0] : '') || '.'

const files = (typeof args[0] === 'string' ? args[1] : args[0]) || {}
await ensureDir(path)
Expand Down
9 changes: 9 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4139,6 +4139,15 @@ [email protected]:
jsonfile "^4.0.0"
universalify "^0.1.0"

fs-extra@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1"
integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==
dependencies:
graceful-fs "^4.2.0"
jsonfile "^6.0.1"
universalify "^2.0.0"

fs-extra@^9.0.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
Expand Down

0 comments on commit fe57cdf

Please sign in to comment.