@@ -70,7 +70,7 @@ export function expand(inputs: string[], outputPath: string, buildPath = ''): vo
70
70
if ( stats . isDirectory ( ) ) {
71
71
dirs . push ( object )
72
72
} else {
73
- throw new Error ( `${ object } is not a file or directory` )
73
+ throw new Error ( `' ${ object } ' is not a file or directory` )
74
74
}
75
75
}
76
76
}
@@ -106,14 +106,14 @@ export function expand(inputs: string[], outputPath: string, buildPath = ''): vo
106
106
}
107
107
108
108
const getFile = ( leaf : string ) => {
109
- debug ( `Searching for ${ leaf } ` )
109
+ debug ( `Searching for ' ${ leaf } ' ` )
110
110
const startPath = path . dirname ( baseFile )
111
111
const fileOrExec = findOnPath ( startPath . split ( path . sep ) , leaf )
112
112
?? which . sync ( leaf , { nothrow : true } )
113
113
if ( fileOrExec === null ) {
114
114
throw new Error ( `cannot find '${ leaf } ' while expanding '${ baseFile } '` )
115
115
}
116
- debug ( `Found ${ fileOrExec } ` )
116
+ debug ( `Found ' ${ fileOrExec } ' ` )
117
117
return fileOrExec
118
118
}
119
119
@@ -223,9 +223,9 @@ export function expand(inputs: string[], outputPath: string, buildPath = ''): vo
223
223
224
224
const processFile = ( baseFile : File , filePath : string ) : void => {
225
225
const outputFile = getOutputPath ( baseFile )
226
- debug ( `Processing file ${ filePath } ` )
226
+ debug ( `Processing file ' ${ filePath } ' ` )
227
227
if ( templateRegex . exec ( filePath ) ) {
228
- debug ( `Expanding ${ baseFile } to ${ outputFile } ` )
228
+ debug ( `Expanding ' ${ baseFile } ' to ' ${ outputFile } ' ` )
229
229
fs . writeFileSync ( outputFile , expandFile ( baseFile , filePath ) )
230
230
} else if ( ! noCopyRegex . exec ( filePath ) ) {
231
231
fs . copyFileSync ( filePath , outputFile )
@@ -239,7 +239,7 @@ export function expand(inputs: string[], outputPath: string, buildPath = ''): vo
239
239
}
240
240
if ( isDirectory ( dirent ) ) {
241
241
const outputDir = getOutputPath ( object )
242
- debug ( `Entering directory ${ object } ` )
242
+ debug ( `Entering directory ' ${ object } ' ` )
243
243
fs . ensureDirSync ( outputDir )
244
244
for ( const childDirent of dirent ) {
245
245
if ( childDirent . name [ 0 ] !== '.' ) {
0 commit comments