5c424a2c6d
* feat: thumbnails workers * feat: thumbnails final * fix: no thumbnailId * fix: unecessary stuff
63 lines
1.1 KiB
TypeScript
63 lines
1.1 KiB
TypeScript
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,
|
|
},
|
|
// workers
|
|
{
|
|
entryPoints: ['src/worker/upload.ts'],
|
|
outDir: 'dist/worker',
|
|
...opts,
|
|
},
|
|
{
|
|
entryPoints: ['src/worker/thumbnail.ts'],
|
|
outDir: 'dist/worker',
|
|
...opts,
|
|
},
|
|
// 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,
|
|
},
|
|
{
|
|
entryPoints: ['src/scripts/clear-zero-byte.ts'],
|
|
outDir: 'dist/scripts',
|
|
...opts,
|
|
},
|
|
{
|
|
entryPoints: ['src/scripts/query-size.ts'],
|
|
outDir: 'dist/scripts',
|
|
...opts,
|
|
},
|
|
{
|
|
entryPoints: ['src/scripts/clear-temp.ts'],
|
|
outDir: 'dist/scripts',
|
|
...opts,
|
|
},
|
|
]);
|