Configuration

Everything should work out-of-the-box, but there are several items that can be customized.

typeCAD projects can be configured using a typecad.conf.ts file in the project’s hw/ directory. This file lets you specify build settings, KiCAD paths, and other options.

typecad.conf.ts

import { defineConfig } from '@typecad/typecad';

export default defineConfig({
  entry: 'src/index.ts',
  kicad_cli: '/usr/bin/kicad-cli',
  kicad_path: '/usr/share/kicad',
  use_flatpak: false,
  verbose: false,
});

Options

OptionTypeDescription
entrystringPath to the TypeScript entry file (relative to hw/)
kicad_clistringPath to the kicad-cli binary
kicad_pathstringPath to the KiCAD installation directory
use_flatpakbooleanPrioritizes a Flatpak installation if true
verbosebooleanEnable verbose output during builds

KiCAD Detection

typeCAD automatically detects KiCAD installations on your system. It supports:

  • Windows: Standard install locations
  • macOS: /Applications/KiCad/
  • Linux: /usr/share/kicad, /usr/local/share/kicad
  • Flatpak: Auto-detected when use_flatpak

Supported versions: KiCAD 10.0.

typecad doctor

Use typecad doctor to verify your configuration and environment:

typecad doctor

This checks that KiCAD, Node.js, and all required tools are installed and accessible. Use --fix to attempt automatic fixes and --json for machine-readable output.