mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
remove sfe node version check & change what require hacks we use
This commit is contained in:
parent
c17196aef7
commit
ad235a6a7a
@ -156,11 +156,10 @@ class PluginManager {
|
||||
}
|
||||
|
||||
loadEnterprisePlugin() {
|
||||
const qualifiedEnterpriseModulePath = path.join(
|
||||
__dirname, '../../node_modules/@serverless/enterprise-plugin');
|
||||
module.paths.unshift(path.join( __dirname, '../../node_modules')
|
||||
this.loadPlugins(['@serverless/enterprise-plugin']);
|
||||
// eslint-disable-next-line global-require
|
||||
const sfePkgJson = require(`${qualifiedEnterpriseModulePath}/package.json`);
|
||||
this.loadPlugins([qualifiedEnterpriseModulePath]);
|
||||
const sfePkgJson = require(`@serverless/enterprise-plugin/package.json`);
|
||||
if (this.serverless.enterpriseEnabled) {
|
||||
const updates = updateNotifier({ pkg: sfePkgJson, interval: 1 });
|
||||
if (updates.update) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user