Skip to content

Commit

Permalink
Make context-aware, fixes microsoft/vscode#120570
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Apr 5, 2021
1 parent 623f757 commit fb0f21f
Show file tree
Hide file tree
Showing 4 changed files with 468 additions and 1 deletion.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ environment:
- nodejs_version: "10"
- nodejs_version: "11"
- nodejs_version: "12"
- nodejs_version: "14"

install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"test": "mocha lib/test.js",
"prepublish": "tsc",
"compile": "tsc",
"watch": "tsc -w",
"lint": "tslint lib/*.ts typings/*.ts *.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion src/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ void Init(v8::Local<v8::Object> exports) {
Nan::Export(exports, "getProcessCpuUsage", GetProcessCpuUsage);
}

NODE_MODULE(hello, Init)
NAN_MODULE_WORKER_ENABLED(hello, Init)
Loading

0 comments on commit fb0f21f

Please sign in to comment.