chore: switch tsup config to typescript (#9057)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Superchupu
2023-01-13 09:44:56 +00:00
committed by GitHub
parent 05a1cbfe54
commit 1831acaffb
19 changed files with 5 additions and 5 deletions

37
tsup.config.ts Normal file
View File

@@ -0,0 +1,37 @@
import { defineConfig } from 'tsup';
export function createTsupConfig({
entry = ['src/index.ts'],
external = [],
noExternal = [],
platform = 'node',
format = ['esm', 'cjs'],
target = 'es2022',
skipNodeModulesBundle = true,
clean = true,
shims = true,
minify = false,
splitting = false,
keepNames = true,
dts = true,
sourcemap = true,
esbuildPlugins = [],
} = {}) {
return defineConfig({
entry,
external,
noExternal,
platform,
format,
skipNodeModulesBundle,
target,
clean,
shims,
minify,
splitting,
keepNames,
dts,
sourcemap,
esbuildPlugins,
});
}