From c6dd4855be2c442d504545385042776732ca2344 Mon Sep 17 00:00:00 2001 From: Xymorot Date: Mon, 28 Dec 2020 23:37:58 +0100 Subject: [PATCH] meta: add information on how to run typeorm commands with better-sqlite3 built for electron --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ebd247e..cd2d27c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -128,6 +128,8 @@ To run migrations: `node_modules/.bin/typeorm migration:run -c ` 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.\