Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions apps/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,36 @@
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slot": "^1.2.3",
"@streamdown/mermaid": "^1.0.2",
"@tanstack/react-router": "^1.167.4",
"@tanstack/react-start": "^1.166.15",
"ai": "^6.0.168",
"@tanstack/react-router": "^1.169.2",
"@tanstack/react-start": "^1.167.65",
"ai": "^6.0.177",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"leadtype": "workspace:*",
"nitro": "3.0.260415-beta",
"nitro": "3.0.260429-beta",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"streamdown": "^2.5.0",
"tailwind-merge": "^3.5.0",
"tailwindcss": "^4.2.1",
"tailwindcss": "^4.3.0",
"tw-animate-css": "^1.4.0"
},
"devDependencies": {
"@mdx-js/rollup": "^3.1.1",
"@playwright/test": "^1.54.2",
"@tailwindcss/vite": "^4.2.1",
"@typescript/native-preview": "7.0.0-dev.20260427.1",
"@repo/typescript-config": "workspace:*",
"@tailwindcss/vite": "^4.3.0",
"@typescript/native-preview": "7.0.0-dev.20260509.2",
"@types/mdast": "^4.0.4",
"@types/mdx": "^2.0.13",
"@types/node": "^22.10.0",
"@types/node": "^25.6.2",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^5.2.0",
"@vitejs/plugin-react": "^6.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
"typescript": "6.0.3",
"vite": "^7.3.1",
"vite-tsconfig-paths": "^5.1.4"
"vite": "^8.0.11",
"vite-tsconfig-paths": "^6.1.1"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
}
6 changes: 1 addition & 5 deletions apps/example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../packages/typescript-config/base.json",
"extends": "@repo/typescript-config/base.json",
"include": [
"playwright.config.ts",
"scripts/**/*",
Expand All @@ -11,14 +11,10 @@
"vite.config.ts"
],
"compilerOptions": {
"target": "ES2022",
"jsx": "react-jsx",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "Bundler",
"noEmit": true,
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"allowJs": true,
"types": ["node", "vite/client"],
"paths": {
Expand Down
1 change: 0 additions & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
},
"files": {
"includes": [
"**",
"!**/content-fixtures",
"!**/dist",
"!**/public",
Expand Down
469 changes: 181 additions & 288 deletions bun.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"devDependencies": {
"@biomejs/biome": "2.4.12",
"@changesets/changelog-github": "0.6.0",
"@changesets/cli": "2.30.0",
"@biomejs/biome": "2.4.14",
"@changesets/changelog-github": "0.7.0",
"@changesets/cli": "2.31.0",
"leadtype": "workspace:*",
"@mdx-js/react": "^3.1.1",
"@typescript/native-preview": "7.0.0-dev.20260427.1",
"@typescript/native-preview": "7.0.0-dev.20260509.2",
"husky": "^9.1.7",
"prettier": "^3.7.4",
"turbo": "^2.9.6",
"turbo": "^2.9.12",
"typescript": "6.0.3",
"ultracite": "7.6.0"
"ultracite": "7.6.5"
},
"name": "suva",
"scripts": {
Expand All @@ -34,7 +34,7 @@
],
"private": true,
"engines": {
"node": ">=18"
"node": ">=22.0.0"
},
"packageManager": "bun@1.3.11"
}
31 changes: 18 additions & 13 deletions packages/leadtype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=22.0.0"
},
"sideEffects": false,
"exports": {
".": {
Expand Down Expand Up @@ -66,8 +69,8 @@
"README.md"
],
"scripts": {
"build": "tsup && bun run docs:generate",
"dev": "tsup --watch",
"build": "rollup -c --configPlugin rollup-plugin-esbuild && bun run docs:generate",
"dev": "rollup -c --configPlugin rollup-plugin-esbuild -w",
"check-types": "tsgo --noEmit",
"docs:generate": "bun run ./scripts/generate-docs.ts",
"lint": "ultracite check src",
Expand All @@ -92,28 +95,30 @@
"unist-builder": "4.0.0",
"unist-util-is": "6.0.1",
"unist-util-visit": "5.1.0",
"valibot": "1.0.0"
"valibot": "1.4.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add a changeset for the security bump

Because leadtype is a published package and the release workflow I inspected uses changesets/action with bun run version/bun run release, this dependency change will not produce a new package version unless the commit also adds a .changeset entry. In that case the valibot advisory fix stays only in the repo/lockfile and consumers installing leadtype from npm will continue receiving the last published package with valibot 1.0.0.

Useful? React with 👍 / 👎.

},
"devDependencies": {
"@cloudflare/tanstack-ai": "^0.1.7",
"@repo/typescript-config": "*",
"@tanstack/ai": "^0.14.0",
"@typescript/native-preview": "7.0.0-dev.20260427.1",
"@repo/typescript-config": "workspace:*",
"@tanstack/ai": "^0.15.0",
"@typescript/native-preview": "7.0.0-dev.20260509.2",
"@types/mdast": "4.0.4",
"@types/node": "^22.10.0",
"ai": "^6.0.168",
"@types/node": "^22.0.0",
"ai": "^6.0.177",
"bash-tool": "1.3.16",
"just-bash": "2.14.2",
"tsup": "^8.3.5",
"just-bash": "2.14.5",
"rollup": "^4.40.0",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "6.0.3",
"vitest": "^2.1.8"
"vitest": "^4.1.5"
},
"peerDependencies": {
"@cloudflare/tanstack-ai": ">=0.1.7",
"@tanstack/ai": ">=0.14.0",
"@tanstack/ai": ">=0.15.0",
"ai": ">=6.0.0",
"bash-tool": ">=1.3.16",
"just-bash": ">=2.14.2",
"just-bash": ">=2.14.5",
"typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
Expand Down
69 changes: 69 additions & 0 deletions packages/leadtype/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import { chmod, rm } from "node:fs/promises";
import { defineConfig, type Plugin, type RenderedChunk } from "rollup";
import dts from "rollup-plugin-dts";
import esbuild from "rollup-plugin-esbuild";

const entries = {
index: "src/index.ts",
"remark/index": "src/remark/index.ts",
"convert/index": "src/convert/index.ts",
"llm/index": "src/llm/index.ts",
"search/index": "src/search/index.ts",
"search/node-index": "src/search/node-index.ts",
"search/ai-index": "src/search/ai-index.ts",
"search/bash-index": "src/search/bash-index.ts",
"search/vercel-index": "src/search/vercel-index.ts",
"search/tanstack-index": "src/search/tanstack-index.ts",
"search/cloudflare-index": "src/search/cloudflare-index.ts",
"lint/index": "src/lint/index.ts",
cli: "src/cli.ts",
} as const;

const isExternal = (id: string) =>
id.startsWith("node:") || !(id.startsWith(".") || id.startsWith("/"));

const cliShebang = (chunk: RenderedChunk) =>
chunk.name === "cli" ? "#!/usr/bin/env node" : "";

const chmodCli: Plugin = {
name: "chmod-cli",
async writeBundle(options, bundle) {
if (bundle["cli.js"] && options.dir) {
await chmod(`${options.dir}/cli.js`, 0o755);
}
},
};

const cleanDist: Plugin = {
name: "clean-dist",
async buildStart() {
await rm("dist", { recursive: true, force: true });
},
};

export default defineConfig([
{
input: entries,
output: {
dir: "dist",
format: "esm",
sourcemap: true,
entryFileNames: "[name].js",
chunkFileNames: "_shared/[name]-[hash].js",
banner: cliShebang,
},
external: isExternal,
plugins: [cleanDist, esbuild({ target: "es2022" }), chmodCli],
},
{
input: entries,
output: {
dir: "dist",
format: "esm",
entryFileNames: "[name].d.ts",
chunkFileNames: "_shared/[name]-[hash].d.ts",
},
external: isExternal,
plugins: [dts({ compilerOptions: { ignoreDeprecations: "6.0" } })],
},
]);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
6 changes: 1 addition & 5 deletions packages/leadtype/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"],
"verbatimModuleSyntax": false,
"noUncheckedIndexedAccess": false
"types": ["node"]
Comment thread
coderabbitai[bot] marked this conversation as resolved.
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
Expand Down
52 changes: 0 additions & 52 deletions packages/leadtype/tsup.config.ts

This file was deleted.

10 changes: 5 additions & 5 deletions packages/typescript-config/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"incremental": false,
"isolatedModules": true,
"lib": ["es2022", "DOM", "DOM.Iterable"],
"module": "NodeNext",
"lib": ["ES2022"],
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "NodeNext",
"moduleResolution": "Bundler",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2022"
"target": "ES2022",
"verbatimModuleSyntax": true
}
}
12 changes: 0 additions & 12 deletions packages/typescript-config/nextjs.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/typescript-config/react-library.json

This file was deleted.

Loading