• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 18572715316

16 Oct 2025 07:37PM UTC coverage: 80.25% (-0.02%) from 80.269%
18572715316

push

github

web-flow
Add typescript typechecking support (#22461)

Fixes #22149

---------

Co-authored-by: Rhys Madigan <rhysmadigan@megt.com.au>
Co-authored-by: Rhys Madigan <rhys.madigan@sourse.co>

405 of 528 new or added lines in 10 files covered. (76.7%)

3 existing lines in 2 files now uncovered.

77635 of 96741 relevant lines covered (80.25%)

3.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/backend/experimental/typescript/register.py
1
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3
from collections.abc import Iterable
×
4

NEW
5
from pants.backend.javascript.subsystems import nodejs_tool
×
6
from pants.backend.tsx.goals import tailor as tsx_tailor
×
7
from pants.backend.tsx.target_types import (
×
8
    TSXSourcesGeneratorTarget,
9
    TSXSourceTarget,
10
    TSXTestsGeneratorTarget,
11
    TSXTestTarget,
12
)
NEW
13
from pants.backend.typescript.goals import check, tailor
×
14
from pants.backend.typescript.target_types import (
×
15
    TypeScriptSourcesGeneratorTarget,
16
    TypeScriptSourceTarget,
17
    TypeScriptTestsGeneratorTarget,
18
    TypeScriptTestTarget,
19
)
20
from pants.engine.rules import Rule
×
21
from pants.engine.target import Target
×
22
from pants.engine.unions import UnionRule
×
23

24

25
def target_types() -> Iterable[type[Target]]:
×
26
    return (
×
27
        TypeScriptSourceTarget,
28
        TypeScriptSourcesGeneratorTarget,
29
        TypeScriptTestTarget,
30
        TypeScriptTestsGeneratorTarget,
31
        TSXSourcesGeneratorTarget,
32
        TSXSourceTarget,
33
        TSXTestsGeneratorTarget,
34
        TSXTestTarget,
35
    )
36

37

38
def rules() -> Iterable[Rule | UnionRule]:
×
39
    return (
×
40
        *tailor.rules(),
41
        *tsx_tailor.rules(),
42
        *nodejs_tool.rules(),
43
        *check.rules(),
44
    )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc