Skip to content

Commit

Permalink
fix: nested .noconflict
Browse files Browse the repository at this point in the history
  • Loading branch information
cha0s committed Jan 2, 2024
1 parent 18aa304 commit 7ed8688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-app/src/move.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7ed8688

Please sign in to comment.