Implement buffer

This commit is contained in:
LongYinan 2019-05-23 19:28:51 +08:00
parent 211ce1e523
commit 7bae4cbb4a
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
6 changed files with 208 additions and 84 deletions
scripts

View file

@ -27,7 +27,7 @@ const nodeIncludePath = path.join(
'node',
)
const moduleName = path.basename(process.cwd()).replace('-', '_')
const moduleName = path.basename(process.cwd()).replace(/-/g, '_')
process.env.NODE_INCLUDE_PATH = nodeIncludePath
process.env.NODE_MAJOR_VERSION = nodeMajorVersion > 8 ? 'stable' : 8