fix: nested .noconflict

This commit is contained in:
cha0s 2024-01-02 16:10:34 -06:00
parent 18aa304183
commit 7ed86886ea

View File

@ -1,7 +1,7 @@
import {
stat,
} from 'fs/promises';
import {basename} from 'path';
import {basename, dirname, join} from 'path';
import {JsonStream, transform} from '@flecks/core/server';
@ -33,7 +33,7 @@ export default async (name, source, destination, type, flecks) => {
const {files} = fileTree;
fileTree.glob('**/*.noconflict')
.forEach((path) => {
files[basename(path, '.noconflict')] = files[path];
files[join(dirname(path), basename(path, '.noconflict'))] = files[path];
delete files[path];
});
// Defaults.