Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

TypeORM CLI for ES6 #3

Open
Open

Description

@sslgeorge

When I use the CLI to generate migrations or entities it still generates as typescript.

Activity

  1. pleerock commented on Jul 24, 2017

    @pleerock
    Member

    file generation for es6 is not supported yet. Feel free to add its support - its easy to do. We can set extra flag in cli, something like typeorm entity:create --es6 and based on this it will generate es6 entity classes. Also we can add option to ormconfig.json like language: es6 and cli will read this format as a generation default.

  2. yunfan commented on Apr 11, 2019

    @yunfan

    @pleerock the typeorm tool told me there isnt an option like --es6

  3. mrtnzagustin commented on Feb 17, 2020

    @mrtnzagustin

    file generation for es6 is not supported yet. Feel free to add its support - its easy to do. We can set extra flag in cli, something like typeorm entity:create --es6 and based on this it will generate es6 entity classes. Also we can add option to ormconfig.json like language: es6 and cli will read this format as a generation default.

    Are es6 supported now?

  4. allandiego commented on Apr 15, 2020

    @allandiego

    Is there any example for migration with javascript only?

  5. mrtnzagustin commented on Apr 15, 2020

    @mrtnzagustin

    @allandiego check this issue and this comment, typeorm cli does not support generating migrations files from and to plain javascript files. They should update their doc. Anyway, typeORM is typescript driven, so i understand that the new features are always being writen first to be "typescript" compatible, dont expect to make a full exploitation of typeORM if you want to use js or es6, at least by now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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