-
Notifications
You must be signed in to change notification settings - Fork 0
chore: deps + security + drop EOL Node + tsup→Rollup + tsconfig cleanup #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
adcd159
dfffc22
dbc8048
c514084
33eec20
1dd75b5
6001852
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ | |
| }, | ||
| "files": { | ||
| "includes": [ | ||
| "**", | ||
| "!**/content-fixtures", | ||
| "!**/dist", | ||
| "!**/public", | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,9 @@ | |
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "engines": { | ||
| "node": ">=22.0.0" | ||
| }, | ||
| "sideEffects": false, | ||
| "exports": { | ||
| ".": { | ||
|
|
@@ -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", | ||
|
|
@@ -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" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because 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": { | ||
|
|
||
| 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" } })], | ||
| }, | ||
| ]); | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.