mirror of
https://github.com/SrIzan10/sern-cli.git
synced 2026-05-01 11:05:17 +00:00
Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Co-authored-by: jacob <jacoobes@sern.dev>
19 lines
494 B
TypeScript
19 lines
494 B
TypeScript
import { defineConfig } from 'tsup';
|
|
import { esbuildPluginVersionInjector } from 'esbuild-plugin-version-injector';
|
|
const shared = {
|
|
entry: ['src/index.ts', 'src/create-publish.mts'],
|
|
clean: true,
|
|
sourcemap: true,
|
|
};
|
|
export default defineConfig({
|
|
format: 'esm',
|
|
target: 'node18',
|
|
tsconfig: './tsconfig.json',
|
|
outDir: './dist',
|
|
treeshake: true,
|
|
esbuildPlugins: [esbuildPluginVersionInjector()],
|
|
platform: 'node',
|
|
splitting: false,
|
|
...shared,
|
|
});
|