chore: downgrade sqlite version while building executables (#8435) (#2850)

Co-authored-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
github-actions[bot]
2024-05-09 22:25:20 +05:30
committed by GitHub
parent 3830c314cc
commit 70e5fbce6c

View File

@@ -0,0 +1,13 @@
const fs = require('fs')
const path = require('path');
const filePath = path.join(__dirname, '..', 'scripts','pkg-executable','package.json');
const nocodbSdkPackage = JSON.parse(fs.readFileSync(filePath, 'utf8'))
// downgrade sqlite3 to 5.1.6 until build related issues are resolved
// https://github.com/TryGhost/node-sqlite3/issues/1748
nocodbSdkPackage.overrides = nocodbSdkPackage.overrides || {};
nocodbSdkPackage.overrides.sqlite3 = "5.1.6"
fs.writeFileSync(filePath, JSON.stringify(nocodbSdkPackage, null, 2), 'utf8');