From 0bb1917efaa2bb195c0b2d8a2af369dc05b7a3c6 Mon Sep 17 00:00:00 2001 From: Taranveer Virk Date: Thu, 1 Feb 2018 20:18:25 -0500 Subject: [PATCH] fixup! drop node 6 in anticipation of #948 Dropping node 6 support from this PR and util.promisify --- packages/boot/docs.json | 2 +- packages/boot/package.json | 11 ++++------- packages/boot/src/booters/booter-utils.ts | 3 +-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/boot/docs.json b/packages/boot/docs.json index f2600ae0ace0..fcd0b0d48057 100644 --- a/packages/boot/docs.json +++ b/packages/boot/docs.json @@ -4,7 +4,7 @@ "src/booters/booter-utils.ts", "src/booters/controller.booter.ts", "src/booters/index.ts", - "src/boot-strapper.ts", + "src/bootstrapper.ts", "src/boot.component.ts", "src/index.ts", "src/keys.ts" diff --git a/packages/boot/package.json b/packages/boot/package.json index d320ff10ea40..6a1e96b61394 100644 --- a/packages/boot/package.json +++ b/packages/boot/package.json @@ -3,16 +3,15 @@ "version": "4.0.0-alpha.1", "description": "A collection of Booters for LoopBack 4 Applications", "engines": { - "node": ">=6" + "node": ">=8" }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-boot*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-boot*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "integration": "lb-mocha \"DIST/test/integration/**/*.js\"", @@ -26,8 +25,7 @@ "@loopback/context": "^4.0.0-alpha.27", "@loopback/core": "^4.0.0-alpha.29", "debug": "^3.1.0", - "glob": "^7.1.2", - "util.promisify": "^1.0.0" + "glob": "^7.1.2" }, "devDependencies": { "@loopback/build": "^4.0.0-alpha.10", @@ -42,7 +40,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/boot/src/booters/booter-utils.ts b/packages/boot/src/booters/booter-utils.ts index 61884efe6f7c..7fa8d9245720 100644 --- a/packages/boot/src/booters/booter-utils.ts +++ b/packages/boot/src/booters/booter-utils.ts @@ -4,8 +4,7 @@ // License text available at https://opensource.org/licenses/MIT import {Constructor} from '@loopback/context'; -import * as util from 'util'; -const promisify = util.promisify || require('util.promisify/implementation'); +import {promisify} from 'util'; const glob = promisify(require('glob')); /**