Back to Moon

Migrate

website/docs/__partials__/migrate/bun/migrate.mdx

2.2.4751 B
Original Source
yaml
language: 'typescript'

toolchain:
  default: 'bun'

fileGroups:
  sources:
    - 'src/**/*'
    - '*.ts'
    - 'bunfig.toml'
  tests:
    - 'tests/**/*'

tasks:
  dev:
    command: 'bun run dev'
    inputs:
      - '@globs(sources)'
    preset: 'server'
  format:
    command: 'bun run format'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
  lint:
    command: 'bun run lint'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
  test:
    command: 'bun test --bail'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
  typecheck:
    command: 'bun run typecheck'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
      - 'tsconfig.json'
      - '/tsconfig.json'