Skip to content

Commit

Permalink
🧼 format & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
m1212e committed Aug 11, 2024
1 parent ab83a67 commit efcab66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/barrel.ts
Original file line number Diff line number Diff line change
@@ -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");
}
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
);
Expand Down

0 comments on commit efcab66

Please sign in to comment.