mirror of
https://github.com/SrIzan10/sern-cli.git
synced 2026-05-01 11:05:17 +00:00
* high hopes * s * plugin calling * add * eol * more progress * fmt * step 1 * refactor out * /internal route * prg * write handler * consolidate * fix version gen * prototype * out * fix merge * bundle presence and event modules * extrapolate into plugin * pluginify and simplify * fix up typing gen for process env and watch mode * watch * add nonpromptable plugins install * fix regression and clean up publish script * ea
28 lines
604 B
TypeScript
28 lines
604 B
TypeScript
import { defineConfig } from 'tsup';
|
|
import { createRequire } from 'node:module';
|
|
|
|
const shared = {
|
|
entry: [
|
|
'src/index.ts',
|
|
'src/create-publish.mts',
|
|
'src/commands/**',
|
|
],
|
|
clean: true,
|
|
sourcemap: true,
|
|
};
|
|
export default defineConfig({
|
|
format: 'esm',
|
|
target: 'node18',
|
|
tsconfig: './tsconfig.json',
|
|
outDir: './dist',
|
|
treeshake: true,
|
|
bundle: true,
|
|
esbuildPlugins: [],
|
|
platform: 'node',
|
|
splitting: true,
|
|
define: {
|
|
__VERSION__: `"${createRequire(import.meta.url)('./package.json').version}"`,
|
|
},
|
|
...shared,
|
|
});
|