sql-dsl/rollup.config.ts

20 lines
347 B
TypeScript
Raw Normal View History

2022-09-24 00:53:12 +00:00
import { defineConfig } from "rollup";
import ts from "@rollup/plugin-typescript";
2021-07-11 11:04:04 +00:00
2022-09-24 00:53:12 +00:00
export default defineConfig({
2021-07-11 11:04:04 +00:00
input: 'src/index.ts',
output: [
{
file: 'dist/index.cjs',
format: 'cjs',
},
{
file: 'dist/index.mjs',
2021-07-11 11:04:04 +00:00
format: 'esm',
},
],
plugins: [
2022-09-24 00:53:12 +00:00
ts({ tsconfig: "./tsconfig.json" }),
2021-07-11 11:04:04 +00:00
],
2022-09-24 00:53:12 +00:00
});