feat: support node10
This commit is contained in:
parent
c05ab719b3
commit
894c7c962a
5 changed files with 6 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ target/
|
|||
.DS_Store
|
||||
Cargo.lock
|
||||
node_modules
|
||||
src/sys/bindings.rs
|
||||
|
|
|
@ -29,7 +29,7 @@ const nodeIncludePath = path.join(
|
|||
|
||||
const moduleName = path.basename(process.cwd()).replace('-', '_')
|
||||
process.env.NODE_INCLUDE_PATH = nodeIncludePath
|
||||
process.env.NODE_MAJOR_VERSION = nodeMajorVersion
|
||||
process.env.NODE_MAJOR_VERSION = nodeMajorVersion > 8 ? 'stable' : 8
|
||||
|
||||
const platform = os.platform()
|
||||
let libExt, platformArgs
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,7 @@ mod node8;
|
|||
#[cfg(node8)]
|
||||
pub use self::node8::Status;
|
||||
|
||||
#[cfg(node9)]
|
||||
mod node9;
|
||||
#[cfg(node9)]
|
||||
pub use self::node9::Status;
|
||||
#[cfg(nodestable)]
|
||||
mod stable;
|
||||
#[cfg(nodestable)]
|
||||
pub use self::stable::Status;
|
||||
|
|
Loading…
Reference in a new issue