Skip to content

fastify generate <dir> --esm --lang=ts doesn't generate esm enabled ts project #577

@ghost

Description

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.0.0

Plugin version

No response

Node.js version

18.12

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

13.1

Description

fastify generate doesn't seem to work well when multiple options are provided. fastify generate . --esm & fastify generate . --lang=ts both seem to work well. But, combining options fastify generate . --esm --lang=ts doesn't seem to create esm support in the generated ts project.

Steps to Reproduce

mkdir foo && cd foo && fastify generate . --esm --lang=ts

Expected Behavior

The expected behavior is to generate an esm enabled typescript project

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions