Skip to content

Commit 8bdbd71

Browse files
authored
Merge pull request microsoft#723 from microsoft/tyriar/compile_commands
Move to compile commands on postinstall for fixing intellisense
2 parents 5063e0e + d3ea906 commit 8bdbd71

File tree

2,367 files changed

+4
-1001870
lines changed

Some content is hidden

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

2,367 files changed

+4
-1001870
lines changed

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)