mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
style: update fes-preset-built-in
This commit is contained in:
parent
ebaf7a22a3
commit
212a761590
@ -76,8 +76,9 @@ export default function (api) {
|
|||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
const source = join(path, file);
|
const source = join(path, file);
|
||||||
const target = join(base, file);
|
const target = join(base, file);
|
||||||
if (!existsSync(base)) {
|
const absPath = join(base, path);
|
||||||
api.utils.mkdirp.sync(base);
|
if (!existsSync(dirname(absPath))) {
|
||||||
|
api.utils.mkdirp.sync(dirname(absPath));
|
||||||
}
|
}
|
||||||
if (statSync(source).isDirectory()) {
|
if (statSync(source).isDirectory()) {
|
||||||
api.utils.mkdirp.sync(target);
|
api.utils.mkdirp.sync(target);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user