Skip to content

Commit

Permalink
Fix update script
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Apr 22, 2024
1 parent ad6e46d commit 5fa5bb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/turnOnSQLCipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ const fs = require('fs');
console.log('Current working directory:', process.cwd());

// Read the package.json file
const packageJson = JSON.parse(fs.readFileSync('package.json'));
const packageJson = JSON.parse(fs.readFileSync('./example/package.json'));

console.log("ROPO package.json:", packageJson);

// Modify the op-sqlite.sqlcipher key to true
packageJson['op-sqlite']['sqlcipher'] = true;

// Save the updated package.json file
fs.writeFileSync('package.json', JSON.stringify(packageJson, null, 2));
fs.writeFileSync('./example/package.json', JSON.stringify(packageJson, null, 2));

console.log('package.json updated successfully!');

0 comments on commit 5fa5bb1

Please sign in to comment.