zipline/tsup.config.ts
dicedtomato 912e439645
feat: file size (#308)
* feat: baseline support for file sizes

* feat: script to add file sizes
2023-03-03 20:40:28 -08:00

47 lines
870 B
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,
},
// 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,
},
]);