File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import path from 'path';
2
2
import { cosmiconfigSync } from 'cosmiconfig' ;
3
3
import toCamelCase from 'to-camel-case' ;
4
4
import mergeOptions from 'merge-options' ;
5
+ import normalizePath from 'normalize-path' ;
5
6
6
7
export default ( { input, flags = { } } ) => {
7
8
const explorer = cosmiconfigSync ( 'posthtml' ) ;
@@ -69,16 +70,21 @@ export default ({input, flags = {}}) => {
69
70
file = file . slice ( 1 ) ;
70
71
}
71
72
72
- return path . join ( ignoreSymbol , path . resolve ( root ) , file ) ;
73
+ return ` ${ ignoreSymbol } ${ normalizePath ( path . join ( path . resolve ( root ) , file ) ) } ` ;
73
74
} ) ;
74
75
75
76
if ( input . length === 0 ) {
76
77
throw new TypeError ( 'input files not found' ) ;
77
78
}
78
79
80
+ output = output ?? config ?. output ;
81
+ if ( output ) {
82
+ output = normalizePath ( output ) ;
83
+ }
84
+
79
85
return mergeOptions ( config ?? { } , {
80
86
input,
81
- output : output ?? config ?. output ,
87
+ output,
82
88
options,
83
89
root,
84
90
allInOutput
You can’t perform that action at this time.
0 commit comments