Skip to content

Commit c922e2e

Browse files
reeligregberge
authored andcommitted
fix(cli): fix --out-dir usage with absolute path (#208)
1 parent a125679 commit c922e2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/src/dirCommand.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import outputFileSync from 'output-file-sync'
44
import readdir from 'recursive-readdir'
55
import camelcase from 'camelcase'
66
import dashify from 'dashify'
7-
import { stat, convertFile } from './util'
7+
import { convertFile, stat } from './util'
88

99
const CASE = {
1010
KEBAB: 'kebab', // kebab-case
@@ -50,7 +50,7 @@ async function dirCommand(
5050
if (!isCompilable(relative)) return false
5151
relative = rename(relative, ext, filenameCase)
5252

53-
const dest = path.join(program.outDir, relative)
53+
const dest = path.resolve(program.outDir, relative);
5454
const code = await convertFile(src, options)
5555

5656
outputFileSync(dest, code)

0 commit comments

Comments
 (0)