From 02d1473f6e9f000326e998e41571739fd7d2857e Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 11 Aug 2021 14:43:02 -0230 Subject: [PATCH] Fix Sentry release configuration (#11813) The Sentry `release` was not being configured correctly. It was being left blank. This is because the location of the extension version was moved in #11029. The build script was correctly updated in that PR, but that work was accidentally undone in a merge error that was included in #11080. --- development/build/scripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/development/build/scripts.js b/development/build/scripts.js index 5f4f98a22..28ee1be31 100644 --- a/development/build/scripts.js +++ b/development/build/scripts.js @@ -36,7 +36,7 @@ const metamaskrc = require('rc')('metamask', { }); const { streamFlatMap } = require('../stream-flat-map.js'); -const baseManifest = require('../../app/manifest/_base.json'); +const { version } = require('../../package.json'); const { createTask, composeParallel, @@ -522,7 +522,7 @@ function getEnvironmentVariables({ devMode, testing }) { return { METAMASK_DEBUG: devMode, METAMASK_ENVIRONMENT: environment, - METAMASK_VERSION: baseManifest.version, + METAMASK_VERSION: version, NODE_ENV: devMode ? 'development' : 'production', IN_TEST: testing ? 'true' : false, PUBNUB_SUB_KEY: process.env.PUBNUB_SUB_KEY || '',