fix: createReadStream off by 1 error

This commit is contained in:
calebboyd
2018-07-31 14:07:21 -05:00
parent db7cdf0200
commit bf65477ca3
3 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "nexe",
"description": "Create a single executable out of your Node.js application",
"license": "MIT",
"version": "2.0.0-rc.32",
"version": "2.0.0-rc.33",
"contributors": [
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
"Jared Allard <jaredallard@outlook.com>",
+1 -1
View File
@@ -214,7 +214,7 @@ const nfs: any = {
process.execPath,
Object.assign({}, opts, {
start: resourceOffset,
end: resourceOffset + length
end: resourceOffset + length - 1
})
)
},
-3
View File
@@ -1,3 +0,0 @@
console.log('hello world')
const fs = require('fs')
console.log(fs.existsSync('./README.md'))