Skip to content

Commit

Permalink
fix(cli): fix --out-dir usage with absolute path (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
reeli authored and gregberge committed Nov 4, 2018
1 parent a125679 commit c922e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/dirCommand.js
Expand Up @@ -4,7 +4,7 @@ import outputFileSync from 'output-file-sync'
import readdir from 'recursive-readdir'
import camelcase from 'camelcase'
import dashify from 'dashify'
import { stat, convertFile } from './util'
import { convertFile, stat } from './util'

const CASE = {
KEBAB: 'kebab', // kebab-case
Expand Down Expand Up @@ -50,7 +50,7 @@ async function dirCommand(
if (!isCompilable(relative)) return false
relative = rename(relative, ext, filenameCase)

const dest = path.join(program.outDir, relative)
const dest = path.resolve(program.outDir, relative);
const code = await convertFile(src, options)

outputFileSync(dest, code)
Expand Down

0 comments on commit c922e2e

Please sign in to comment.