Skip to content

Commit

Permalink
Move to compile commands on postinstall for fixing intellisense
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Oct 4, 2024
1 parent 589a720 commit d3ea906
Show file tree
Hide file tree
Showing 2,367 changed files with 4 additions and 1,001,870 deletions.
4 changes: 4 additions & 0 deletions scripts/post-install.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@ts-check

const { execSync } = require('child_process');
const fs = require('fs');
const os = require('os');
const path = require('path');
Expand Down Expand Up @@ -76,4 +77,7 @@ if (os.platform() !== 'win32') {
}
}

console.log(`\x1b[32m> Generating compile_commands.json...\x1b[0m`);
execSync('npx node-gyp configure -- -f compile_commands_json');

process.exit(0);
Loading

0 comments on commit d3ea906

Please sign in to comment.