diff --git a/apps/www/src/lib/components/docs/nav/docs-sidebar-nav-items.svelte b/apps/www/src/lib/components/docs/nav/docs-sidebar-nav-items.svelte index 70327c242..a92bbe441 100644 --- a/apps/www/src/lib/components/docs/nav/docs-sidebar-nav-items.svelte +++ b/apps/www/src/lib/components/docs/nav/docs-sidebar-nav-items.svelte @@ -13,7 +13,7 @@ - {item.title} + {item.title} {#if item.label} {item.label} diff --git a/apps/www/src/lib/registry/default/ui/carousel/context.ts b/apps/www/src/lib/registry/default/ui/carousel/context.ts index c90b4cb84..b63bc46c0 100644 --- a/apps/www/src/lib/registry/default/ui/carousel/context.ts +++ b/apps/www/src/lib/registry/default/ui/carousel/context.ts @@ -4,12 +4,11 @@ import { getContext, hasContext, setContext } from "svelte"; import type { HTMLAttributes } from "svelte/elements"; import type { Readable, Writable } from "svelte/store"; -export type CarouselAPI = - NonNullable["on:emblaInit"]> extends ( - evt: CustomEvent - ) => void - ? CarouselAPI - : never; +export type CarouselAPI = NonNullable< + NonNullable["on:emblaInit"] +> extends (evt: CustomEvent) => void + ? CarouselAPI + : never; type EmblaCarouselConfig = NonNullable[1]>; diff --git a/apps/www/src/lib/registry/new-york/ui/carousel/context.ts b/apps/www/src/lib/registry/new-york/ui/carousel/context.ts index c90b4cb84..b63bc46c0 100644 --- a/apps/www/src/lib/registry/new-york/ui/carousel/context.ts +++ b/apps/www/src/lib/registry/new-york/ui/carousel/context.ts @@ -4,12 +4,11 @@ import { getContext, hasContext, setContext } from "svelte"; import type { HTMLAttributes } from "svelte/elements"; import type { Readable, Writable } from "svelte/store"; -export type CarouselAPI = - NonNullable["on:emblaInit"]> extends ( - evt: CustomEvent - ) => void - ? CarouselAPI - : never; +export type CarouselAPI = NonNullable< + NonNullable["on:emblaInit"] +> extends (evt: CustomEvent) => void + ? CarouselAPI + : never; type EmblaCarouselConfig = NonNullable[1]>; diff --git a/package.json b/package.json index 3e02fb47d..2abe2879e 100644 --- a/package.json +++ b/package.json @@ -1,59 +1,46 @@ { - "name": "shadcn-svelte", - "version": "0.0.1", - "description": "monorepo for shadcn-svelte", - "author": { - "name": "huntabyte", - "url": "https://twitter.com/huntabyte" - }, - "private": true, - "scripts": { - "build": "pnpm build:registry && pnpm build:site", - "build:cli": "pnpm -F shadcn-svelte build", - "build:registry": "pnpm -F www build:registry", - "build:site": "pnpm -F www build", - "dev": "pnpm build:registry && pnpm -F www dev", - "dev:cli": "pnpm -F shadcn-svelte start:dev", - "preview": "pnpm -F www preview", - "test": "pnpm -F www test", - "check": "pnpm -F www check", - "check:watch": "pnpm -F www check:watch", - "test:unit": "pnpm -F www test:unit", - "lint": "prettier --check . && eslint .", - "format:check": "pnpm -r format:check", - "format": "prettier --write .", - "preinstall": "npx only-allow pnpm", - "postinstall": "pnpm -r sync", - "ci:publish": "changeset publish", - "ci:build": "pnpm build:cli", - "ci:release": "pnpm ci:build && pnpm ci:publish" - }, - "engines": { - "pnpm": ">=8", - "node": ">=18" - }, - "repository": { - "type": "git", - "url": "https://github.com/huntabyte/shadcn-svelte.git" - }, - "license": "MIT", - "type": "module", - "devDependencies": { - "@antfu/eslint-config": "^2.11.6", - "@changesets/cli": "^2.27.1", - "@huntabyte/eslint-config": "^0.0.1", - "eslint": "^8.57.0", - "eslint-plugin-antfu": "^2.1.2", - "eslint-plugin-svelte": "2.36.0-next.13", - "prettier": "^3.2.5", - "prettier-plugin-svelte": "^3.2.3", - "prettier-plugin-tailwindcss": "^0.5.12", - "pretty-quick": "^4.0.0", - "simple-git-hooks": "^2.10.0", - "svelte": "^4.2.12", - "svelte-eslint-parser": "^0.33.1" - }, - "simple-git-hooks": { - "pre-commit": "pnpm -r format:staged --staged" - } + "name": "shadcn-svelte", + "version": "0.0.1", + "description": "monorepo for shadcn-svelte", + "author": { + "name": "huntabyte", + "url": "https://twitter.com/huntabyte" + }, + "private": true, + "scripts": { + "build": "pnpm build:registry && pnpm --filter www build", + "build:cli": "pnpm --filter shadcn-svelte build", + "build:registry": "pnpm --filter www build:registry", + "dev": "pnpm build:registry && pnpm --filter www dev", + "dev:cli": "pnpm --filter shadcn-svelte start:dev", + "preview": "pnpm --filter www preview", + "test": "pnpm --filter www test", + "check": "pnpm --filter www check", + "check:watch": "pnpm --filter www check:watch", + "test:unit": "pnpm --filter www test:unit", + "lint": "pnpm -r lint", + "format:check": "pnpm -r format:check", + "format": "pnpm -r format", + "preinstall": "npx only-allow pnpm", + "postinstall": "pnpm -r sync", + "ci:publish": "changeset publish", + "ci:build": "pnpm --filter shadcn-svelte build", + "ci:release": "pnpm ci:build && pnpm ci:publish", + "pub:beta": "cd packages/cli && pnpm pub:beta", + "pub:release": "cd packages/cli && pnpm pub:release" + }, + "engines": { + "pnpm": ">=8" + }, + "repository": { + "type": "git", + "url": "https://github.com/huntabyte/shadcn-svelte.git" + }, + "license": "MIT", + "type": "module", + "devDependencies": { + "@changesets/cli": "^2.27.1", + "pretty-quick": "^4.0.0", + "simple-git-hooks": "^2.10.0" + } }