mirror of
https://github.com/sern-handler/cli
synced 2026-06-06 01:16:53 +00:00
feat: publish command (#105)
Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Co-authored-by: jacob <jacoobes@sern.dev>
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
import { defineConfig } from 'tsup';
|
||||
import { esbuildPluginVersionInjector } from 'esbuild-plugin-version-injector';
|
||||
const shared = {
|
||||
entry: ['src/index.ts'],
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
entry: ['src/index.ts', 'src/create-publish.mts'],
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
};
|
||||
export default defineConfig({
|
||||
format: 'esm',
|
||||
target: 'node16',
|
||||
tsconfig: './tsconfig.json',
|
||||
outDir: './dist',
|
||||
treeshake: true,
|
||||
esbuildPlugins: [esbuildPluginVersionInjector()],
|
||||
platform: 'node',
|
||||
...shared,
|
||||
format: 'esm',
|
||||
target: 'node18',
|
||||
tsconfig: './tsconfig.json',
|
||||
outDir: './dist',
|
||||
treeshake: true,
|
||||
esbuildPlugins: [esbuildPluginVersionInjector()],
|
||||
platform: 'node',
|
||||
splitting: false,
|
||||
...shared,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user