Skip to content

[BUG] Typescript 7.0.2 #1521

Description

@clates

Describe the bug

Typescript 7.0.2 is the latest available typescript package in npm and gets installed during

https://github.com/danger/danger-js/blob/13.0.10/Dockerfile#L16

It does not support getDefaultCompilerOptions as used in
https://github.com/danger/danger-js/blob/13.0.10/source/runner/runners/utils/transpiler.ts#L130-L132

To Reproduce
Steps to reproduce the behavior:

  1. Run danger.js and attempt to transpile without overriding the default compiler options.

Additional context
Add any other context about the problem here.

Suspect that

RUN yarn remove 'typescript' --dev && yarn add 'typescript@6.0.3'

Would be sufficient until support for 7.x.x is both stable on the provider side and in danger-js

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions