This repository was archived by the owner on Jan 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,10 @@ const compile = async (
226
226
227
227
const sourceMapFile = options . sourceMapFile ;
228
228
options . inputPath = inputPath . mountedFullPath ;
229
- const fileContext = context . file . create ( inputPath . mountedFullPath ) ;
229
+
230
+ //TODO: do we need to supply mountedpath instead?
231
+ //(sass-spec fails on some test with mounted path, cause output expects physical path instead)
232
+ const fileContext = context . file . create ( inputPath . raw ) ;
230
233
const sassContext = fileContext . getContext ( ) ;
231
234
fileContext . options = options ;
232
235
fileContext . compile ( ) ;
@@ -252,7 +255,7 @@ const main = async (argv: Array<string> = process.argv) => {
252
255
const usageDefinition = displayHelp ? helpDefinitions : await buildDisplayVersion ( ) ;
253
256
const usage = cmdUsage ( [ ...usageDefinition ] ) ;
254
257
console . log ( usage ) ;
255
- return ;
258
+ return 0 ;
256
259
}
257
260
258
261
const { loadModule } = await import ( './loadModule' ) ;
@@ -290,12 +293,12 @@ const main = async (argv: Array<string> = process.argv) => {
290
293
. map ( ( { mountedDir } ) => mountedDir )
291
294
. forEach ( dir => interop . unmount ( dir ) ) ;
292
295
293
- process . exit ( result ) ;
296
+ return result ;
294
297
} ;
295
298
296
299
( async ( ) => {
297
300
try {
298
- await main ( ) ;
301
+ process . exitCode = await main ( ) ;
299
302
} catch ( error ) {
300
303
console . log ( error ) ;
301
304
process . exit ( - 1 ) ;
You can’t perform that action at this time.
0 commit comments