Files
zeekay e43ab1afe7 chore: rename all PostHog references to Insights/Hanzo
Bulk rename across 989 files:
- Package names: posthog-js → @hanzo/insights, posthog-node → @hanzo/insights-node, etc.
- Repository URLs: posthog/posthog-js → hanzoai/insights-js
- Brand names: PostHog → Insights
- File renames: 259 reference JSON files, source files, workflow files
- Directory rename: eslint-plugin-posthog-js → eslint-plugin-insights

Remaining: 8 refs to @posthog/rrweb-* (real npm deps, need fork+publish)
2026-03-06 01:41:12 -08:00

28 lines
807 B
JavaScript

import 'dotenv/config'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import replace from '@rollup/plugin-replace'
const prod = process.env.NODE_ENV === 'production'
export default {
input: {
insights: 'src/insights.js',
main: 'src/main.js',
},
output: {
dir: 'dist',
sourcemap: !prod,
},
plugins: [
replace({
preventAssignment: true,
'process.env.INSIGHTS_PROJECT_API_KEY': JSON.stringify(process.env.INSIGHTS_PROJECT_API_KEY),
'process.env.INSIGHTS_API_HOST': JSON.stringify(process.env.INSIGHTS_API_HOST),
'process.env.INSIGHTS_UI_HOST': JSON.stringify(process.env.INSIGHTS_UI_HOST),
}),
resolve(),
commonjs(),
],
}