Skip to content

Bug: Wrong generated global type file import (Typescript) #557

@stnwk

Description

@stnwk

Hi everyone :)

Since apollographql/rover#520 by @danilobuerger landed I noticed the following:

When a globalTypes.ts file is generated and the the --outputFlat option is used, the outputPath is being ignored in generated type files (at least for the import statement of the globalTypes file).

It outputs:

import { SomeGlobalTypes, ShouldBe, Here } from "globalTypes";

when it should really be:

import { SomeGlobalTypes, ShouldBe, Here } from "./globalTypes";

Notice the incorrect path in the first example.

If you need more details, please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions