Skip to content

Commit d4c8736

Browse files
committed
chore: resolve linter issues in tsup.config.ts
1 parent 7a769f8 commit d4c8736

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tsup.config.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ function dateRange(since: number) {
1414
}
1515

1616
async function allFilesInPath(path: string) {
17-
return [...await fs.readdir(path)].map(file => `${path}/${file}`);
17+
return [...(await fs.readdir(path))].map((file) => `${path}/${file}`);
1818
}
1919

2020
export default defineConfig(async ({ watch }) => {
2121
const adapters = await allFilesInPath("src/password/adapter");
2222
const external = Object.keys(pkg.optionalDependencies);
23-
console.log(adapters);
24-
return ({
25-
entry: [
26-
"src/index.ts",
27-
...adapters,
28-
],
23+
return {
24+
entry: ["src/index.ts", ...adapters],
2925
target: "node18",
3026
external,
3127
dts: !watch,
@@ -37,5 +33,5 @@ export default defineConfig(async ({ watch }) => {
3733
banner: {
3834
js: banner([pkg.name, pkg.description, ${dateRange(pkg.since)} ${pkg.author}`, `@license ${pkg.license}`]),
3935
},
40-
})
36+
};
4137
});

0 commit comments

Comments
 (0)