@@ -425,7 +425,7 @@ export async function main(argv, options) {
425425 } catch ( e1 ) {
426426 try {
427427 transform = require ( resolved ) ;
428- } catch ( e2 ) {
428+ } catch ( _ ) {
429429 return prepareResult ( e1 ) ;
430430 }
431431 }
@@ -670,7 +670,7 @@ export async function main(argv, options) {
670670 . replace ( / \\ / g, "/" )
671671 . replace ( extension_re , "" )
672672 . replace ( / \/ $ / , "" ) ;
673-
673+
674674 // Try entryPath.ext, then entryPath/index.ext
675675 let sourceText = await readFile ( sourcePath + extension , baseDir ) ;
676676 if ( sourceText == null ) {
@@ -867,7 +867,7 @@ export async function main(argv, options) {
867867 // Prepare output
868868 if ( ! opts . noEmit ) {
869869 if ( opts . binaryFile ) {
870- // We catched lagacy field for binary output (before 0.20)
870+ // We caught legacy field for binary output (before 0.20)
871871 return prepareResult ( Error ( "Usage of the --binaryFile compiler option is no longer supported. Use --outFile instead." ) ) ;
872872 }
873873 let bindings = opts . bindings || [ ] ;
@@ -959,7 +959,7 @@ export async function main(argv, options) {
959959 writeFile ( opts . textFile , out , baseDir )
960960 ) ;
961961 } else if ( ! hasStdout ) {
962- hasStdout = true ;
962+ // hasStdout = true;
963963 writeStdout ( out ) ;
964964 }
965965 }
@@ -1106,7 +1106,7 @@ async function getConfig(file, baseDir, readFile) {
11061106 try {
11071107 config = JSON . parse ( contents ) ;
11081108 } catch ( ex ) {
1109- throw new Error ( `Asconfig is not valid json: ${ location } ` ) ;
1109+ throw new Error ( `Asconfig is not valid json: ${ location } ` , { cause : ex } ) ;
11101110 }
11111111
11121112 // validate asconfig shape
0 commit comments