mirror of
https://github.com/hanzoai/insights-icons.git
synced 2026-09-30 22:46:13 +00:00
a123916f0fb5d79cb99b25b20dbbbcba8dd48fd6
pnpm 10 does not run a dependency's build scripts unless the package says so,
and vite's bundled esbuild fetches its binary in exactly that step. Without it:
[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: [email protected]
and `vite build` — which IS this repo's gate, since the build is what gets
published — fails. Red before this commit and unrelated to the icon rename; it
just had to be fixed before a release could carry it.
esbuild only, named rather than blanket-approved.
Co-authored-by: Hanzo Dev <[email protected]>
@hanzo/insights-icons
The product icon set used by Hanzo Insights — 319 React SVG icon components.
import { IconTrends } from '@hanzo/insights-icons'
<IconTrends />
Every icon renders an <svg> carrying the Icon class, which is the sizing hook
the @hanzo/elements design-system stylesheet keys on. Icons inherit currentColor
and size from that class, so colour and size are controlled by CSS, not props.
Build
pnpm install
pnpm build # -> dist/icons.es.js, dist/icons.cjs.js, dist/index.d.ts
Provenance
Derived from the MIT-licensed @posthog/icons. See NOTICE for the list of
changes and LICENSE for the retained upstream copyright.
Prior to this repository, @hanzo/insights-icons was published without a source
tree of its own — version 0.36.6 on npm was a byte-identical republish of
@posthog/[email protected] with only the package name changed. This repository is
that package's actual source.
Languages
TypeScript
100%