diff --git a/src/checkEngine.js b/src/checkEngine.js deleted file mode 100644 index a5cd5ce90..000000000 --- a/src/checkEngine.js +++ /dev/null @@ -1,21 +0,0 @@ -// NOTE: important, don't use any new javascript language features in this file! -// (other than es6 modules, which are transpiled) - -import pleaseUpgradeNode from 'please-upgrade-node' -import pkg from '../package.json' - -const currentNodeVersion = process.versions.node -const requiredNodeVersion = pkg.engines.node.replace('>=', '') - -pleaseUpgradeNode(pkg, { - message: function message() { - return ( - // eslint-disable-next-line prefer-template - 'serverless-offline requires node.js version ' + - requiredNodeVersion + - ' or higher, but found version ' + - currentNodeVersion + - '. Please upgrade!' - ) - }, -}) diff --git a/src/index.js b/src/index.js index dbb8b2622..ce831edf6 100755 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1 @@ -// NOTE: pleaseUpgradeNode needs to run first! -import './checkEngine.js' - export { default } from './ServerlessOffline.js'