@@ -130,9 +130,9 @@ async function checkExportsMapIntegrity(args: {
130130 if ( exportsMapResult . success === false ) {
131131 throw new Error (
132132 "Missing exports map within the 'package.json'.\n" +
133- exportsMapResult . error . message +
134- '\nCorrect Example:\n' +
135- JSON . stringify ( presetFieldsDual . exports , null , 2 ) ,
133+ exportsMapResult . error . message +
134+ '\nCorrect Example:\n' +
135+ JSON . stringify ( presetFieldsDual . exports , null , 2 ) ,
136136 ) ;
137137 }
138138
@@ -193,9 +193,9 @@ async function checkExportsMapIntegrity(args: {
193193 if ( result . exitCode !== 0 ) {
194194 throw new Error (
195195 `Require of file '${ file } ' failed.\n` +
196- `In case this file is expected to raise an error please add an export to the 'bob.check.skip' field in your 'package.json' file.\n` +
197- `Error:\n` +
198- result . stderr ,
196+ `In case this file is expected to raise an error please add an export to the 'bob.check.skip' field in your 'package.json' file.\n` +
197+ `Error:\n` +
198+ result . stderr ,
199199 ) ;
200200 }
201201 } ) ,
@@ -311,18 +311,18 @@ async function checkExportsMapIntegrity(args: {
311311 await fse . access ( path . join ( args . cwd , filePath ) , fse . constants . X_OK ) . catch ( ( ) => {
312312 throw new Error (
313313 "Binary file '" +
314- absoluteFilePath +
315- "' is not executable.\n" +
316- `Please set the executable bit e.g. by running 'chmod +x "${ absoluteFilePath } "'.` ,
314+ absoluteFilePath +
315+ "' is not executable.\n" +
316+ `Please set the executable bit e.g. by running 'chmod +x "${ absoluteFilePath } "'.` ,
317317 ) ;
318318 } ) ;
319319
320320 const contents = await fse . readFile ( absoluteFilePath , 'utf-8' ) ;
321321 if ( ! contents . startsWith ( '#!/usr/bin/env node\n' ) ) {
322322 throw new Error (
323323 "Binary file '" +
324- absoluteFilePath +
325- "' does not have a shebang.\n Please add '#!/usr/bin/env node' to the beginning of the file." ,
324+ absoluteFilePath +
325+ "' does not have a shebang.\n Please add '#!/usr/bin/env node' to the beginning of the file." ,
326326 ) ;
327327 }
328328 }
0 commit comments