diff --git a/src/barrel.ts b/src/barrel.ts index 969cfb2..fdbcb3b 100644 --- a/src/barrel.ts +++ b/src/barrel.ts @@ -1,5 +1,7 @@ import { getConfig } from "./config"; export function generateBarrelFile(imports: string[]) { - return imports.map((i) => `export * from "./${i}${getConfig().importFileExtension}";`).join("\n"); + return imports + .map((i) => `export * from "./${i}${getConfig().importFileExtension}";`) + .join("\n"); } diff --git a/src/config.ts b/src/config.ts index bbf07a9..850c23e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -66,7 +66,7 @@ const configSchema = Type.Object( /** * What file extension, if any, to add to src file imports. Set to ".js" to support nodenext module resolution */ - importFileExtension: Type.String({ default: '' }), + importFileExtension: Type.String({ default: "" }), }, { additionalProperties: false }, );