mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
commit
0edd01145c
@ -76,6 +76,9 @@ export default function (api) {
|
||||
files.forEach((file) => {
|
||||
const source = join(path, file);
|
||||
const target = join(base, file);
|
||||
if (!existsSync(dirname(target))) {
|
||||
api.utils.mkdirp.sync(dirname(target));
|
||||
}
|
||||
if (statSync(source).isDirectory()) {
|
||||
api.utils.mkdirp.sync(target);
|
||||
} else if (Array.isArray(ignore)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user