Skip to content

Commit

Permalink
Move version definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Jul 21, 2020
1 parent b102b58 commit 9bc1e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/server/lib/plugins/child/run_plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions packages/server/lib/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -87,6 +88,7 @@ const init = (config, options) => {
_.extend(config, {
projectRoot: options.projectRoot,
configFile: options.configFile,
version: pkg.version,
})

ipc.send('load', config)
Expand Down

0 comments on commit 9bc1e45

Please sign in to comment.