You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 24, 2026. It is now read-only.
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.
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.
@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.
Activity
pleerock commentedon Jul 24, 2017
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 --es6and based on this it will generate es6 entity classes. Also we can add option toormconfig.jsonlikelanguage: es6and cli will read this format as a generation default.yunfan commentedon Apr 11, 2019
@pleerock the typeorm tool told me there isnt an option like --es6
mrtnzagustin commentedon Feb 17, 2020
Are es6 supported now?
allandiego commentedon Apr 15, 2020
Is there any example for migration with javascript only?
mrtnzagustin commentedon Apr 15, 2020
@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.