{"data":{"slug":"github-xberg-io-xberg-ai-rulez-skills-xberg-typescript-toolchain-bf26299a1771","title":"Configure TypeScript Toolchain for Xberg Projects","summary":"Set up TypeScript tooling for Xberg projects with pnpm, Vitest, and integration-specific configurations.","url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-typescript-toolchain-bf26299a1771","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-typescript-toolchain-bf26299a1771","markdown_url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-typescript-toolchain-bf26299a1771.md","download_url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-typescript-toolchain-bf26299a1771\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The setup requires a working knowledge of TypeScript and familiarity with Xberg's project structure, including the use of `poly lint .` and `poly fmt .` for linting and formatting.","instructions":"---\ntype: Playbook\ntitle: Xberg Typescript Toolchain\ndescription: \"Change TS\/JS tooling: pnpm\/npm locks, Vitest, napi-rs, wasm-pack and integrations.\"\npaths:\n  - \"crates\/xberg-node\/**\"\n  - \"crates\/xberg-wasm\/**\"\n  - \"integrations\/node\/**\"\n  - \"e2e\/node\/**\"\n  - \"e2e\/wasm\/**\"\n  - \"package.json\"\n  - \"tsconfig.json\"\nx-ai-rulez:\n  kind: skill\n  id: xberg-typescript-toolchain\n  metadata:\n    name: xberg-typescript-toolchain\n---\n\n# Xberg TypeScript toolchain\n\nThese repository-specific facts override generic TypeScript conventions where they differ.\n\n- Lint and format with `poly lint .` and `poly fmt .`. Poly embeds oxlint and oxfmt; do not install or invoke oxlint,\n  oxfmt, Prettier, ESLint, or Biome directly, and do not add per-package lint scripts.\n- Root `tsconfig.json` enables strict checking options and is a project-reference root for `e2e\/node` and `e2e\/wasm`.\n  Confirm that the package being changed is included before treating a root typecheck as evidence.\n- Testing uses Vitest with `@vitest\/coverage-v8`. No coverage threshold is enforced unless one is added to current\n  configuration.\n- No runtime schema-validator dependency is guaranteed. Use existing boundary guards or propose a dependency\n  explicitly rather than assuming Zod is available.\n- The pnpm workspace uses the root lockfile. Packages under `integrations\/node\/` are outside that workspace and use\n  their own npm lockfiles. Determine ownership before installing or updating dependencies.\n- `integrations\/node\/{langchain,llamaindex}-xberg` use tsup. The Node binding is built by napi-rs and the WASM binding\n  by wasm-pack; do not add an application bundler to either binding.\n- Prefer `workspace:*` for new dependencies between packages that are actually in the pnpm workspace.\n- JavaScript dependency auditing is manual unless a current workflow says otherwise; do not claim an audit ran merely\n  because Rust or poly checks passed.\n","use_cases":["Setting up TypeScript for a new Xberg project","Configuring tooling for integration tests with Vitest","Setting up linting and formatting with Poly"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/xberg-io\/xberg\/blob\/ffbf7971796a126fc52f6bb8fb40418772071f61\/.ai-rulez\/skills\/xberg-typescript-toolchain\/SKILL.md","source_commit":"ffbf7971796a126fc52f6bb8fb40418772071f61","license":null,"version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-15T13:52:45.000000Z","updated_at":"2026-11-16T05:16:54.000000Z","seo_title":"Configure TypeScript Toolchain for Xberg Projects","seo_description":"Configure TypeScript tooling for Xberg projects with pnpm, Vitest, and integration-specific configurations.","seo_keywords":["configure typescript xberg","xberg typescript setup","typescript toolchain setup"]}}