Commit 9e0bcd2d authored by Jun's avatar Jun

check dir exist

parent af7eb0b0
......@@ -18,9 +18,9 @@ const iconsDir = path.join(rootDir, 'src/icons')
const generateIndex = () => {
if (!fs.existsSync(srcDir)) {
fs.mkdirSync(srcDir)
if (!fs.existsSync(iconsDir)) {
fs.mkdirSync(iconsDir)
}
} else if (!fs.existsSync(iconsDir)) {
fs.mkdirSync(iconsDir)
}
const initialTypeDefinitions = `/// <reference types="react" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment