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
212a761590
commit
182b4820c4
@ -76,9 +76,8 @@ 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);
|
||||||
const absPath = join(base, path);
|
if (!existsSync(dirname(target))) {
|
||||||
if (!existsSync(dirname(absPath))) {
|
api.utils.mkdirp.sync(dirname(target));
|
||||||
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