meta: add information on how to run typeorm commands with better-sqlite3 built for electron

This commit is contained in:
Xymorot 2020-12-28 23:37:58 +01:00
parent d5697540a8
commit c6dd4855be
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ To run migrations:
`node_modules/.bin/typeorm migration:run -c <connection name>`
This is also pre-defined in the npm script `typeorm:migrate`.
For now you need to `npm rebuild` better-sqlite3 for your local node version to run these since there is no easy way to make them work inside electron. Don't forget to run `npm run rebuild` after to rebuild for electron again.
### Formatting and Linters
This project uses [Prettier](https://prettier.io/) for code formatting (and an [.editorconfig](.editorconfig) which you should respect). [ESLint](https://eslint.org/) is used for linting.\