36 lines
706 B
TypeScript
36 lines
706 B
TypeScript
import { defineConfig } from "vite";
|
|
import dts from "vite-plugin-dts";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: "src/index.ts",
|
|
formats: ["es"],
|
|
},
|
|
rollupOptions: {
|
|
external: [
|
|
"testcontainers",
|
|
"@suaveplan/testing-integration",
|
|
"node:fs",
|
|
"node:fs/promises",
|
|
"node:os",
|
|
"node:path",
|
|
"node:crypto",
|
|
"node:https",
|
|
],
|
|
output: {
|
|
preserveModules: true,
|
|
preserveModulesRoot: "src",
|
|
entryFileNames: "[name].js",
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
dts({
|
|
entryRoot: "src",
|
|
tsconfigPath: "./tsconfig.lib.json",
|
|
rollupTypes: false,
|
|
}),
|
|
],
|
|
});
|