Gathering detailed insights and metrics for @jdpnielsen/sequelize-cli-typescript
Gathering detailed insights and metrics for @jdpnielsen/sequelize-cli-typescript
Gathering detailed insights and metrics for @jdpnielsen/sequelize-cli-typescript
Gathering detailed insights and metrics for @jdpnielsen/sequelize-cli-typescript
npm install @jdpnielsen/sequelize-cli-typescript
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (95.9%)
TypeScript (4.1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
740 Commits
1 Forks
4 Branches
1 Contributors
Updated on Aug 02, 2022
Latest Version
6.3.0
Package Id
@jdpnielsen/sequelize-cli-typescript@6.3.0
Unpacked Size
79.11 kB
Size
19.30 kB
File Count
34
NPM Version
6.14.7
Node Version
14.7.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This repository was forked to allow having a compiled folder for migrations and seeders.
By setting up local scripts you are able to compile .ts
-> .js
migrations within your Sequelize's configuration folders and run them as usual.
I have extended this functionallity to allow migrating typescript in runtime - meaning you are not required to compile .ts
down to .js
anymore. Run your migrations as usual.
Be sure that your Sequelize compiled path for migrations and seeders point to a correct location.
The Sequelize Command Line Interface (CLI) for TypeScript
Install CLI globally with
1$ npm install -g @jdpnielsen/sequelize-cli-typescript
Now you can run CLI using following command anywhere
1sequelize-ts
Install CLI locally to your node_modules
folder with
1$ npm install --save @jdpnielsen/sequelize-cli-typescript
You should be able to run CLI with
1$ node_modules/.bin/sequelize-ts
1Sequelize CLI [Node: 10.21.0, CLI: 6.0.0, ORM: 6.1.0] 2 3### Differences from Sequelize-Cli _(non-TypeScript)_ 4 5With sequelize-cli, the ```model:generate``` command would produce _JavaScript_ files in two folders: 6/models and /migrations, or other folders as specified in your .sequelizerc file. The ```db:migrate``` 7command would then exe ute these _JavaScript_ files to update your database. 8 9With sequelize-cli-typescript, ```model:generate``` produces _TypeScript_ files in the same two folders 10(or again, as specified in your .sequelizerc file). But before you can run ```db:migrate``` you must 11compile your migrations. (The step of compiling your migrations is left to you.) 12 13You could compile your migrations along with your other code, or as part of a separate script. After you have compiled 14your migrations, then you can run ```db:migrate```. 15 16It's usually the case that the compiled _JavaScript_ code will be put in a different directory than 17the source _TypeScript_ code, so whereas sequelize-cli had one ```migrations-path``` setting, 18sequelize-cli-typescript has two: ```migrations-source-path``` and ```migrations-compiled-path```, which 19default to /migrations and /migrations/compiled respectively. 20 21 22### Usage
Sequelize CLI [Node: 6.11.2, CLI: 3.0.0, ORM: 4.8.0]
Commands: sequelize-ts db:migrate Run pending migrations sequelize-ts db:migrate:schema:timestamps:add Update migration table to have timestamps sequelize-ts db:migrate:status List the status of all migrations sequelize-ts db:migrate:undo Reverts a migration sequelize-ts db:migrate:undo:all Revert all migrations ran sequelize-ts db:seed Run specified seeder sequelize-ts db:seed:undo Deletes data from the database sequelize-ts db:seed:all Run every seeder sequelize-ts db:seed:undo:all Deletes data from the database sequelize-ts db:create Create database specified by configuration sequelize-ts db:drop Drop database specified by configuration sequelize-ts init Initializes project sequelize-ts init:config Initializes configuration sequelize-ts init:migrations Initializes migrations sequelize-ts init:models Initializes models sequelize-ts init:seeders Initializes seeders sequelize-ts migration:generate Generates a new migration file [aliases: migration:create] sequelize-ts model:generate Generates a model and its migration [aliases: model:create] sequelize-ts seed:generate Generates a new seed file [aliases: seed:create]
Options: --version Show version number [boolean] --help Show help [boolean]
Please specify a command
## Contributing
All contributions are accepted as a PR.
- You can file issues by submitting a PR (with test) as a test case.
- Implement new feature by submitting a PR
- Improve documentation by submitting PR to [Sequelize](https://github.com/sequelize/sequelize)
Please read the [contributing guidelines](CONTRIBUTING.md).
## Documentation
- [Migrations Documentation](https://sequelize.org/master/manual/migrations.html)
- [CLI Options](docs/README.md)
- [Frequently Asked Questions](docs/FAQ.md)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
57 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More