diff --git a/packages/server/lib/plugins/child/run_plugins.js b/packages/server/lib/plugins/child/run_plugins.js index 4b210e42754d..1f70bb3f2706 100644 --- a/packages/server/lib/plugins/child/run_plugins.js +++ b/packages/server/lib/plugins/child/run_plugins.js @@ -6,7 +6,6 @@ const debug = require('debug')('cypress:server:plugins:child') const Promise = require('bluebird') const tsnode = require('ts-node') const resolve = require('resolve') -const pkg = require('@packages/root') const errors = require('../../errors') const preprocessor = require('./preprocessor') @@ -227,8 +226,6 @@ module.exports = (ipc, pluginsFile, projectRoot) => { } ipc.on('load', (config) => { - config.version = pkg.version - debug('plugins load file "%s"', pluginsFile) debug('passing config %o', config) load(ipc, config, pluginsFile) diff --git a/packages/server/lib/plugins/index.js b/packages/server/lib/plugins/index.js index 895f67af38eb..f40cf579b0c0 100644 --- a/packages/server/lib/plugins/index.js +++ b/packages/server/lib/plugins/index.js @@ -5,6 +5,7 @@ const debug = require('debug')('cypress:server:plugins') const Promise = require('bluebird') const errors = require('../errors') const util = require('./util') +const pkg = require('@packages/root') let pluginsProcess = null let registeredEvents = {} @@ -87,6 +88,7 @@ const init = (config, options) => { _.extend(config, { projectRoot: options.projectRoot, configFile: options.configFile, + version: pkg.version, }) ipc.send('load', config)