Compare commits

..

2 Commits
main ... forge

Author SHA1 Message Date
231513d511 Merge pull request 'make forge a peer dependency' (#2) from probablycorey/howl:forge into forge
Reviewed-on: #2
2026-01-21 04:53:19 +00:00
bf21731d4d make forge a peerDependency
fixes duplicate module instances when bundled

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 15:06:37 -08:00
19 changed files with 21 additions and 28 deletions

1
.npmrc
View File

@ -1 +0,0 @@
registry=https://npm.nose.space

View File

@ -1,14 +1,8 @@
{ {
"name": "@because/howl", "name": "howl",
"version": "0.0.3", "module": "index.tsx",
"module": "src/index.tsx",
"type": "module", "type": "module",
"exports": "./src/index.tsx", "exports": "./src/index.tsx",
"files": [
"src",
"!src/**/*.test.*",
"README.md"
],
"scripts": { "scripts": {
"dev": "bun run --hot test/server.tsx" "dev": "bun run --hot test/server.tsx"
}, },
@ -18,9 +12,9 @@
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "^5", "typescript": "^5",
"@because/forge": "*" "forge": "*"
}, },
"dependencies": { "dependencies": {
"lucide-static": "^0.555.0" "lucide-static": "^0.555.0"
} }
} }

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import { Section } from './section' import { Section } from './section'
import { H2, Text } from './text' import { H2, Text } from './text'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
export const Box = define('Box', { export const Box = define('Box', {

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import { VStack, HStack } from './stack' import { VStack, HStack } from './stack'
import { Section } from './section' import { Section } from './section'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
// Code block container // Code block container

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import { Section } from './section' import { Section } from './section'
import { H2 } from './text' import { H2 } from './text'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import { VStack, HStack } from './stack' import { VStack, HStack } from './stack'
import { Button } from './button' import { Button } from './button'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import * as icons from 'lucide-static' import * as icons from 'lucide-static'
import { Grid } from './grid' import { Grid } from './grid'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { Section } from './section' import { Section } from './section'
import { H2, H3, H4, H5, Text } from './text' import { H2, H3, H4, H5, Text } from './text'
import { VStack, HStack } from './stack' import { VStack, HStack } from './stack'

View File

@ -1,5 +1,5 @@
// Re-export Forge utilities // Re-export Forge utilities
export { Styles, extendThemes } from '@because/forge' export { Styles, extendThemes } from 'forge'
export { theme } from './theme' export { theme } from './theme'
export { cn } from './cn' export { cn } from './cn'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import { Section } from './section' import { Section } from './section'
import { H2 } from './text' import { H2 } from './text'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
// Dark mode toggle button // Dark mode toggle button

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
export const Section = define('Section', { export const Section = define('Section', {

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import { Section } from './section' import { Section } from './section'
import { H2 } from './text' import { H2 } from './text'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
import { H2 } from './text' import { H2 } from './text'
import { RedBox, GreenBox, BlueBox } from './box' import { RedBox, GreenBox, BlueBox } from './box'

View File

@ -1,4 +1,4 @@
import { define } from '@because/forge' import { define } from 'forge'
import { theme } from './theme' import { theme } from './theme'
export const H1 = define('H1', { export const H1 = define('H1', {

View File

@ -1,4 +1,4 @@
import { createThemes } from '@because/forge' import { createThemes } from 'forge'
const lightTheme = { const lightTheme = {
// Colors // Colors

View File

@ -1,6 +1,6 @@
import "hono/jsx" import "hono/jsx"
import { raw } from "hono/html" import { raw } from "hono/html"
import { Styles } from '@because/forge' import { Styles } from "forge"
import { import {
DarkModeToggle, DarkModeToggle,
PageTitle, PageTitle,