2023-01-06 17:45:48 -05:00
|
|
|
import { defineConfig, Options } from 'tsup';
|
|
|
|
|
|
|
|
const opts: Options = {
|
|
|
|
platform: 'node',
|
|
|
|
format: ['cjs'],
|
|
|
|
treeshake: true,
|
|
|
|
clean: true,
|
|
|
|
sourcemap: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default defineConfig([
|
|
|
|
{
|
|
|
|
entryPoints: ['src/server/index.ts'],
|
|
|
|
...opts,
|
|
|
|
},
|
2023-04-04 00:42:27 -05:00
|
|
|
// workers
|
|
|
|
{
|
|
|
|
entryPoints: ['src/worker/upload.ts'],
|
|
|
|
outDir: 'dist/worker',
|
|
|
|
...opts,
|
|
|
|
},
|
2023-01-06 17:45:48 -05:00
|
|
|
// scripts
|
|
|
|
{
|
|
|
|
entryPoints: ['src/scripts/import-dir.ts'],
|
|
|
|
outDir: 'dist/scripts',
|
|
|
|
...opts,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
entryPoints: ['src/scripts/list-users.ts'],
|
|
|
|
outDir: 'dist/scripts',
|
|
|
|
...opts,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
entryPoints: ['src/scripts/read-config.ts'],
|
|
|
|
outDir: 'dist/scripts',
|
|
|
|
...opts,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
entryPoints: ['src/scripts/set-user.ts'],
|
|
|
|
outDir: 'dist/scripts',
|
|
|
|
...opts,
|
|
|
|
},
|
2023-02-26 20:52:39 -05:00
|
|
|
{
|
|
|
|
entryPoints: ['src/scripts/clear-zero-byte.ts'],
|
|
|
|
outDir: 'dist/scripts',
|
|
|
|
...opts,
|
|
|
|
},
|
2023-03-03 23:40:28 -05:00
|
|
|
{
|
|
|
|
entryPoints: ['src/scripts/query-size.ts'],
|
|
|
|
outDir: 'dist/scripts',
|
|
|
|
...opts,
|
|
|
|
},
|
2023-01-06 17:45:48 -05:00
|
|
|
]);
|