Skip to content

Commit

Permalink
fix: add case true for preserveStructure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
NamesMT committed Sep 30, 2024
1 parent 1f15d29 commit b4edb51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export function createContext(options: Options = {}, root = process.cwd!()) {
return path.resolve(parsedPath.dir, outName)

switch (structureMode) {
case true:
case 'parent':
return `${path.resolve(resolvedOutDir, path.parse(relativePath).dir, outName)}`
case 'nested':
Expand Down

0 comments on commit b4edb51

Please sign in to comment.