Skip to content

Commit

Permalink
fixup! drop node 6 in anticipation of #948
Browse files Browse the repository at this point in the history
Dropping node 6 support from this PR and util.promisify
  • Loading branch information
virkt25 committed Feb 6, 2018
1 parent a45d535 commit 0bb1917
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/boot/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 4 additions & 7 deletions packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand All @@ -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",
Expand All @@ -42,7 +40,6 @@
"index.js",
"index.d.ts",
"dist/src",
"dist6/src",
"api-docs",
"src"
],
Expand Down
3 changes: 1 addition & 2 deletions packages/boot/src/booters/booter-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

/**
Expand Down

0 comments on commit 0bb1917

Please sign in to comment.