We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a686e5 commit b962100Copy full SHA for b962100
tsup.config.mts
@@ -3,6 +3,21 @@ import path from 'node:path';
3
4
import { defineConfig } from 'tsup';
5
6
+// async function resolveEntries(targetDir: string) {
7
+// const baseDir = path.join('src', targetDir);
8
+// const entries: { [key: string]: string } = {
9
+// [targetDir]: path.join(baseDir, 'index.ts')
10
+// };
11
+// for (const dirname of await fs.readdir(baseDir, 'utf-8')) {
12
+// const dirpath = path.join(baseDir, dirname);
13
+// if (!(await fs.lstat(dirpath)).isDirectory()) {
14
+// continue;
15
+// }
16
+// entries[`${targetDir}/${dirname}`] = path.join(dirpath, 'index.ts');
17
18
+// return entries;
19
20
+
21
export default defineConfig([
22
{
23
banner: {
0 commit comments