diff --git a/.npmignore b/.npmignore index 594c9cf..2ecb80a 100644 --- a/.npmignore +++ b/.npmignore @@ -4,3 +4,4 @@ .prettierrc .travis.yml yarn.lock +test/ diff --git a/package.json b/package.json index 07f8757..f635c95 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "license": "MIT", "description": "Allows users to use generators in order to write common functions that can be both sync or async.", "main": "index.js", + "files": ["index.js"], "author": "Logan Smyth ", "homepage": "https://github.com/loganfsmyth/gensync", "repository": { diff --git a/test/index.test.js b/test/index.test.js index ca1a269..ea2bf00 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -1,6 +1,6 @@ "use strict"; -const promisify = require("util.promisify"); +const promisify = require("util").promisify; const gensync = require("../"); const TEST_ERROR = new Error("TEST_ERROR");