When on typescript project, sequelize-cli still generates javascript files.

Abierto
#1,436 12 comentarios 3 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript, typescript
Área
cli

Línea de trabajo

Start by running the reported sequelize init and migration CLI commands in a TypeScript project and inspect the generated migration, seed, and model files. Done means these generated files use the .ts extension and are compatible with the project; the payload names no implementation files or tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

What I am doing?

I'm using Sequelize-cli in a typescript project and it is not generating .ts files and I have to then update those files extensions and make manual changes to the file for making it compatible in my project.

What I expect to happen?

I want to have the CLI work the same for my typescript file as it does for a javascript project. I expect the cli to generate proper migration, see and model files with .ts extension.

What is actually happening?

When I try to run sequelize init or other migration cli, it will generate javascript files instead of typescript as expected.

Dialect: mysql
Database version: latest
Sequelize CLI version: latest
Sequelize version: latest

Would you resolve this issue by submitting a Pull Request?

  • Yes, I have the time and I know how to start.

I have completed and fully tested the configuration and changes needed for this issue fix, but I am not able to push my work into the repository. Could you please help me get access so that I can push my work on this issue?

Lenguaje dominante
JavaScript
Estrellas
2.6k
Forks
524
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sequelize/cli

Todos los issues de sequelize/cli

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.