Skip to content

Commit 5431105

Browse files
committed
build: fix clangd IDE intelligence
1 parent 261a226 commit 5431105

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.clangd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CompileFlags:
2+
CompilationDatabase: build/Debug

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
"build.doc": "typedoc --options ./typedoc.json && minify-all -s docs-raw -d docs --jsCompressor terser",
9292
"deploy.doc": "run-s build.doc && gh-pages --dist \"./docs\"",
9393
"prebuild": "run-s build.js && node ./script/prebuild.js",
94-
"build.native": "node-gyp configure --release && node-gyp build --release",
95-
"build.native.debug": "cross-env CMAKE_BUILD_TYPE=Debug node-gyp configure --debug && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug",
94+
"build.native": "node-gyp configure --release && node-gyp configure --release -- -f compile_commands_json && node-gyp build --release",
95+
"build.native.debug": "node-gyp configure --debug && node-gyp configure --debug -- -f compile_commands_json && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug",
9696
"build": "run-s build.js build.native",
9797
"build.debug": "run-s build.js build.native.debug",
9898
"test": "run-s build && mocha --exit",

0 commit comments

Comments
 (0)