init repo

This commit is contained in:
2025-10-21 22:18:18 +01:00
parent 09affd5191
commit fb8ff229c9
8 changed files with 130 additions and 0 deletions

23
rollup.config.js Normal file
View File

@@ -0,0 +1,23 @@
const typescript = require("@rollup/plugin-typescript");
const typescriptOptions = {
exclude: ["tests/**/*"],
compilerOptions: { declaration: false },
};
const data = [
{
external: ["typeorm", "sinon"],
input: "src/index.ts",
output: { file: "dist/index.es.js", format: "esm" },
plugins: [typescript(typescriptOptions)],
},
{
external: ["typeorm", "sinon"],
input: "src/index.ts",
output: { file: "dist/index.cjs.js", format: "cjs" },
plugins: [typescript(typescriptOptions)],
},
];
module.exports = data;