@@ -130,9 +130,9 @@ async function checkExportsMapIntegrity(args: {
130
130
if ( exportsMapResult . success === false ) {
131
131
throw new Error (
132
132
"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 ) ,
136
136
) ;
137
137
}
138
138
@@ -193,9 +193,9 @@ async function checkExportsMapIntegrity(args: {
193
193
if ( result . exitCode !== 0 ) {
194
194
throw new Error (
195
195
`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 ,
199
199
) ;
200
200
}
201
201
} ) ,
@@ -311,18 +311,18 @@ async function checkExportsMapIntegrity(args: {
311
311
await fse . access ( path . join ( args . cwd , filePath ) , fse . constants . X_OK ) . catch ( ( ) => {
312
312
throw new Error (
313
313
"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 } "'.` ,
317
317
) ;
318
318
} ) ;
319
319
320
320
const contents = await fse . readFile ( absoluteFilePath , 'utf-8' ) ;
321
321
if ( ! contents . startsWith ( '#!/usr/bin/env node\n' ) ) {
322
322
throw new Error (
323
323
"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." ,
326
326
) ;
327
327
}
328
328
}
0 commit comments