Skip to content

Commit

Permalink
fix: محاولة إصلاح مشكلة مجلد التكوينات
Browse files Browse the repository at this point in the history
  • Loading branch information
Assayyaad committed Sep 14, 2024
1 parent 2cbd45d commit 00dca32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cli/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @import { CleanOptions, ConfigData, ConfigKey, PackageData, TypedocData } from './types.js' */
import { existsSync } from 'fs'
import { readFile, writeFile, mkdir } from 'fs/promises'
import { existsSync, mkdirSync } from 'fs'
import { readFile, writeFile } from 'fs/promises'
import { dirname, relative, resolve } from 'path'
import { fileURLToPath } from 'url'

Expand Down Expand Up @@ -143,7 +143,7 @@ async function writeConfigFile(fileName, data, { path, encoding }) {
const dPath = resolve(path, CONFIG_DIR)
const fPath = resolve(dPath, `${fileName}.json`)

if (!existsSync(dPath)) await mkdir(dPath)
if (!existsSync(dPath)) mkdirSync(dPath)
await writeFile(fPath, data, encoding)
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"description": "Generate types and docs with a click",
"scripts": {
"install": "workspace ./workspace.json -c",
"prepack": "npm run format",
"format": "prettier . --write --ignore-path .gitignore",
"test": "mocha ./test/**/*.test.js"
},
Expand Down

0 comments on commit 00dca32

Please sign in to comment.