Skip to content

Commit d3ea906

Browse files
committed
Move to compile commands on postinstall for fixing intellisense
Fixes #707
1 parent 589a720 commit d3ea906

2,367 files changed

Lines changed: 4 additions & 1001870 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

scripts/post-install.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ts-check
22

3+
const { execSync } = require('child_process');
34
const fs = require('fs');
45
const os = require('os');
56
const path = require('path');
@@ -76,4 +77,7 @@ if (os.platform() !== 'win32') {
7677
}
7778
}
7879

80+
console.log(`\x1b[32m> Generating compile_commands.json...\x1b[0m`);
81+
execSync('npx node-gyp configure -- -f compile_commands_json');
82+
7983
process.exit(0);

0 commit comments

Comments
 (0)