diff --git a/development/metamaskbot-build-announce.js b/development/metamaskbot-build-announce.js index 2198d7e36..d5b05e03c 100755 --- a/development/metamaskbot-build-announce.js +++ b/development/metamaskbot-build-announce.js @@ -1,6 +1,6 @@ #!/usr/bin/env node const request = require('request-promise') -const VERSION = require('../dist/chrome/manifest.json').version +const VERSION = require('../dist/chrome/manifest.json').version // eslint-disable-line import/no-unresolved start().catch(console.error) diff --git a/development/mock-dev.js b/development/mock-dev.js index 188c04678..8da625149 100644 --- a/development/mock-dev.js +++ b/development/mock-dev.js @@ -15,7 +15,6 @@ const h = require('react-hyperscript') const Root = require('../ui/app/pages') const configureStore = require('../ui/app/store/store') const actions = require('../ui/app/store/actions') -const states = require('./states') const backGroundConnectionModifiers = require('./backGroundConnectionModifiers') const Selector = require('./selector') const MetamaskController = require('../app/scripts/metamask-controller') @@ -23,6 +22,9 @@ const firstTimeState = require('../app/scripts/first-time-state') const ExtensionPlatform = require('../app/scripts/platforms/extension') const noop = function () {} +// the states file is generated before this file is run, but after `lint` is run +const states = require('./states') /* eslint-disable-line import/no-unresolved */ + const log = require('loglevel') window.log = log log.setLevel('debug') diff --git a/development/sentry-publish.js b/development/sentry-publish.js index cab3d1ac8..8d9333a86 100644 --- a/development/sentry-publish.js +++ b/development/sentry-publish.js @@ -1,7 +1,7 @@ #!/usr/bin/env node const pify = require('pify') const exec = pify(require('child_process').exec, { multiArgs: true }) -const VERSION = require('../dist/chrome/manifest.json').version +const VERSION = require('../dist/chrome/manifest.json').version // eslint-disable-line import/no-unresolved start().catch(console.error)