mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-07 06:59:25 +00:00
Agent-Logs-Url: https://github.com/marocchino/sticky-pull-request-comment/sessions/d06505e0-ed2a-4dff-841c-baf27a74d54e Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
25 lines
651 B
TypeScript
25 lines
651 B
TypeScript
// See: https://rollupjs.org/introduction/
|
|
|
|
import commonjs from "@rollup/plugin-commonjs"
|
|
import nodeResolve from "@rollup/plugin-node-resolve"
|
|
import typescript from "@rollup/plugin-typescript"
|
|
|
|
const config = {
|
|
context: "globalThis",
|
|
input: "src/main.ts",
|
|
onwarn: (warning, warn) => {
|
|
if (warning.code === "CIRCULAR_DEPENDENCY" && warning.ids?.every(id => id.includes("/node_modules/"))) {
|
|
return
|
|
}
|
|
warn(warning)
|
|
},
|
|
output: {
|
|
exports: "auto",
|
|
file: "dist/index.js",
|
|
format: "cjs",
|
|
sourcemap: true,
|
|
},
|
|
plugins: [typescript(), nodeResolve({preferBuiltins: true}), commonjs()],
|
|
}
|
|
|
|
export default config
|