mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
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)
33 lines
814 B
JavaScript
33 lines
814 B
JavaScript
import insights from '@insights/rollup-plugin'
|
|
import packageJson from './package.json' with { type: 'json' }
|
|
|
|
export default {
|
|
input: './src/index.ts',
|
|
output: [
|
|
{
|
|
format: 'es',
|
|
dir: 'dist/esm',
|
|
},
|
|
{
|
|
format: 'cjs',
|
|
dir: 'dist/cjs',
|
|
},
|
|
{
|
|
format: 'iife',
|
|
file: 'dist/index.iife.js',
|
|
},
|
|
],
|
|
plugins: [
|
|
insights({
|
|
personalApiKey: process.env.INSIGHTS_PERSONAL_API_KEY,
|
|
projectId: process.env.INSIGHTS_PROJECT_ID,
|
|
host: process.env.INSIGHTS_API_HOST,
|
|
cliBinaryPath: process.env.INSIGHTS_CLI_BINARY_PATH,
|
|
logLevel: 'info',
|
|
sourcemaps: {
|
|
enabled: true,
|
|
},
|
|
}),
|
|
],
|
|
}
|