Skip to content

Commit 026b873

Browse files
fix: add .node extension (#8)
* fix: require node extension * bump package.json version * Updating deprecated dependencies Co-authored-by: Hector Hernandez Guzman <hectorh@microsoft.com>
1 parent abc999c commit 026b873

File tree

4 files changed

+331
-367
lines changed

4 files changed

+331
-367
lines changed

Diff for: .travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ os:
66
- linux
77
- osx
88
node_js:
9-
- "13"
9+
- "14"
1010
- "12"
1111
- "10"
1212
- "8"
@@ -23,7 +23,7 @@ script:
2323
- npm test
2424
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build --build-arg VERSION=$TRAVIS_NODE_VERSION -t tmp/alpine-native-metrics .; fi;
2525
after_success:
26-
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) &&
26+
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) &&
2727
[ "$TRAVIS_PULL_REQUEST" == "false" ]; then
2828
docker run -e NODE_PRE_GYP_GITHUB_TOKEN tmp/alpine-native-metrics; fi;
2929
echo "Publishing"; npm install node-pre-gyp-github@1.4.3; ./node_modules/.bin/node-pre-gyp configure; ./node_modules/.bin/node-pre-gyp build; ./node_modules/.bin/node-pre-gyp package; ./node_modules/.bin/node-pre-gyp-github publish;

Diff for: lib/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const events = require("events");
2-
const natives = require("../build/Release/native_metrics");
2+
const natives = require("../build/Release/native_metrics.node");
33

44
type gcTypes =
55
| "Scavenge"

0 commit comments

Comments
 (0)