Skip to content

Commit

Permalink
fix: replace mkdirp with mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
snickbit committed Jun 3, 2022
1 parent 60cd5b0 commit d9751d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"@urql/core": "^2.5.0",
"graphql": "^16.5.0",
"isomorphic-unfetch": "^3.1.0",
"lodash": "^4.17.21",
"mkdirp": "^1.0.4"
"lodash": "^4.17.21"
},
"devDependencies": {
"@remedyred/indexer": "^2.4.2",
Expand Down
5 changes: 2 additions & 3 deletions src/actions/generate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {saveFile} from '@snickbit/node-utilities'
import {mkdir, saveFile} from '@snickbit/node-utilities'
import {$out, getImportString, getStringContent, initConfig, parseIcon, saveConfig} from '../utilities/common'
import mkdirp from 'mkdirp'
import path from 'path'

export default async function() {
Expand Down Expand Up @@ -61,7 +60,7 @@ export default async function() {
const boot_path = config.output || config.isQuasar ? `src/boot/fontawesome.${ext}` : `src/fontawesome.${ext}`
let contentString = getStringContent(content, config)

mkdirp.sync(path.dirname(boot_path))
mkdir(path.dirname(boot_path), {recursive: true})
saveFile(boot_path, `// DO NOT EDIT - This file is automatically generated\n${contentString}`)
const newConfig = {
...config,
Expand Down

0 comments on commit d9751d6

Please sign in to comment.