style: update fes-preset-built-in

This commit is contained in:
aringlai 2021-04-02 12:24:46 +08:00
parent ebaf7a22a3
commit 212a761590

View File

@ -76,8 +76,9 @@ export default function (api) {
files.forEach((file) => {
const source = join(path, file);
const target = join(base, file);
if (!existsSync(base)) {
api.utils.mkdirp.sync(base);
const absPath = join(base, path);
if (!existsSync(dirname(absPath))) {
api.utils.mkdirp.sync(dirname(absPath));
}
if (statSync(source).isDirectory()) {
api.utils.mkdirp.sync(target);