Skip to content

Commit c850bd8

Browse files
committed
Fix Prettier
1 parent 474c4f9 commit c850bd8

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

src/commands/check.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

src/config.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ const BobConfigModel = zod.optional(
1717
zod.literal(false),
1818
zod.optional(
1919
zod.object({
20-
copy: zod.optional(zod.array(zod.string()),/* {
20+
copy: zod.optional(
21+
zod.array(zod.string()) /* {
2122
description:
2223
'Specify a list of files that should be copied the the output directory.',
23-
} */),
24+
} */,
25+
),
2426
}),
2527
),
2628
],
@@ -33,10 +35,12 @@ const BobConfigModel = zod.optional(
3335
zod.union([
3436
zod.literal(false),
3537
zod.object({
36-
skip: zod.optional(zod.array(zod.string()), /* {
38+
skip: zod.optional(
39+
zod.array(zod.string()) /* {
3740
description:
3841
'Skip certain files from being checked. E.g. modules with side-effects.',
39-
} */),
42+
} */,
43+
),
4044
}),
4145
]),
4246
/* {
@@ -45,11 +49,11 @@ const BobConfigModel = zod.optional(
4549
}, */
4650
),
4751
}),
48-
],/*
52+
] /*
4953
{
5054
description:
5155
'Bob configuration. Set this value to false in order to disable running bob on this package.',
52-
}, */
56+
}, */,
5357
),
5458
);
5559

0 commit comments

Comments
 (0)