Skip to content

Type declaration file doesn't get emitted to .mesh when there is no get in yaml file #2637

Closed
@gablabelle

Description

@gablabelle

Describe the bug
It might not be the exact reason but it seems like if we don't have a get in the yaml file, the type declaration doesn't get emitted to .mesh

To Reproduce
Steps to reproduce the behavior:

  1. Checkout the following branch (type-declaration-emitting-bug) and run yarn install.
  2. cd to the packages/graphql-server folder and run yarn build && yarn mesh build. See the output in .mesh contains the index.d.ts type declaration as it should.

Screen Shot 2021-08-13 at 11 26 58

  1. Now comment line 40 to 49 in src/test.yaml, save the file and run yarn mesh build again. See the output in .mesh does NOT contains the index.d.ts type declaration as it should.

Screen Shot 2021-08-13 at 11 27 41

Expected behavior
.mesh/index.d.ts file should be emitted

Environment:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions