From bf65477ca3b5dbff78d7dff8c0260cba1960b135 Mon Sep 17 00:00:00 2001 From: calebboyd Date: Tue, 31 Jul 2018 14:07:21 -0500 Subject: [PATCH] fix: createReadStream off by 1 error --- package.json | 2 +- src/steps/shim-fs.ts | 2 +- test.js | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 test.js diff --git a/package.json b/package.json index d2279ec..eb81e9e 100644 --- a/package.json +++ b/package.json @@ -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 (http://crcn.io)", "Jared Allard ", diff --git a/src/steps/shim-fs.ts b/src/steps/shim-fs.ts index 79d8159..2d41101 100644 --- a/src/steps/shim-fs.ts +++ b/src/steps/shim-fs.ts @@ -214,7 +214,7 @@ const nfs: any = { process.execPath, Object.assign({}, opts, { start: resourceOffset, - end: resourceOffset + length + end: resourceOffset + length - 1 }) ) }, diff --git a/test.js b/test.js deleted file mode 100644 index d2a8349..0000000 --- a/test.js +++ /dev/null @@ -1,3 +0,0 @@ -console.log('hello world') -const fs = require('fs') -console.log(fs.existsSync('./README.md'))