Files
backstage/.changeset/warm-impalas-march.md
T
Fredrik Adelöw efc73db10c switch us over to better-sqlite3
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-11 15:37:50 +01:00

947 B

@backstage/create-app
@backstage/create-app
patch

The main repo has switched from @vscode/sqlite3 to better-sqlite3 as its preferred SQLite installation. This decision was triggered by a number of issues with the former that arose because it needs build infrastructure in place and functional in order to be installed. The main drawback of this is that the new package uses the database client ID better-sqlite3 instead of the plain sqlite3.

If you want to perform the same switch in your own repository,

  • Replace all of your package.json dependencies on @vscode/sqlite3 with the latest version of better-sqlite3 instead

     "dependencies": {
    -  "@vscode/sqlite3": "^5.0.7",
    +  "better-sqlite3": "^7.5.0",
    
  • In your app-config and tests, wherever you supply client: 'sqlite3', instead supply client: 'better-sqlite3

      backend:
        database:
    -    client: sqlite3
    +    client: better-sqlite3