From 5c3648997e80d37248768b7634703df581a96122 Mon Sep 17 00:00:00 2001 From: Ionut Achim Date: Thu, 24 May 2018 09:30:59 +0300 Subject: [PATCH 1/3] Add dependency to `util.promisify` fixes #48 --- .gitignore | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 5 ++++- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad46b30 --- /dev/null +++ b/.gitignore @@ -0,0 +1,61 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# next.js build output +.next diff --git a/package.json b/package.json index b581661..d8de8de 100644 --- a/package.json +++ b/package.json @@ -16,5 +16,8 @@ "bugs": { "url": "https://github.com/hharnisc/hypercwd/issues" }, - "homepage": "https://github.com/hharnisc/hypercwd#readme" + "homepage": "https://github.com/hharnisc/hypercwd#readme", + "dependencies": { + "util.promisify": "1.0.0" + } } From a07f68085796a52fac61943fa81391fa11f6ea75 Mon Sep 17 00:00:00 2001 From: Ionut Achim Date: Thu, 24 May 2018 09:35:04 +0300 Subject: [PATCH 2/3] Require `promisify` from the `util.promisify` module --- setCwd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setCwd.js b/setCwd.js index f1a8189..1d06dd9 100644 --- a/setCwd.js +++ b/setCwd.js @@ -1,5 +1,5 @@ const { exec } = require('child_process'); -const { promisify } = require('util'); +const { promisify } = require('util.promisify'); const promiseExec = promisify(exec); From ac74279982a91794e96f632fbeb9d75b200371ab Mon Sep 17 00:00:00 2001 From: Ionut Achim Date: Thu, 24 May 2018 09:37:36 +0300 Subject: [PATCH 3/3] Fix `promisify` import --- setCwd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setCwd.js b/setCwd.js index 1d06dd9..31deee3 100644 --- a/setCwd.js +++ b/setCwd.js @@ -1,5 +1,5 @@ const { exec } = require('child_process'); -const { promisify } = require('util.promisify'); +const promisify = require('util.promisify'); const promiseExec = promisify(exec);