cli
cli copied to clipboard
feat: configuration for seamless cli use in a typescript project
-
In this commit, I have modified the templates and made other related changes to add support for typescript projects.
-
The new changes I made, will automatically detect if the project that uses sequelize-cli is on typescript or not and will switch logic based on it.
Pull Request check-list
Please make sure to review and check all of these items:
- [x] Does
npm run testpass with this change (including linting)? - [x] Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
- [ ] Have you added new tests to prevent regressions?
- [ ] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
Description of change
Link to the issue: https://github.com/sequelize/cli/issues/1436
The sequelize-cli didn't have the support for typescript projects and in this PR I implemented certain changes that will make it capable of handling the CLI for both typescript and javascript files, additionally, I have improved the templates to be able to generate both .ts and .js files for migrations, models, and seeds.