We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a125679 commit c922e2eCopy full SHA for c922e2e
1 file changed
packages/cli/src/dirCommand.js
@@ -4,7 +4,7 @@ import outputFileSync from 'output-file-sync'
4
import readdir from 'recursive-readdir'
5
import camelcase from 'camelcase'
6
import dashify from 'dashify'
7
-import { stat, convertFile } from './util'
+import { convertFile, stat } from './util'
8
9
const CASE = {
10
KEBAB: 'kebab', // kebab-case
@@ -50,7 +50,7 @@ async function dirCommand(
50
if (!isCompilable(relative)) return false
51
relative = rename(relative, ext, filenameCase)
52
53
- const dest = path.join(program.outDir, relative)
+ const dest = path.resolve(program.outDir, relative);
54
const code = await convertFile(src, options)
55
56
outputFileSync(dest, code)
0 commit comments