From 1855f1a7cd6826eb14c282fe1213e5b510a8c633 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Fri, 6 Oct 2017 16:33:34 -0400 Subject: [PATCH] Merge pull request #11324 from brave/build-package-channels Build package channels --- app/channel.js | 2 +- tools/buildPackage.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/channel.js b/app/channel.js index 00b22bf021a..39a1ae30bf8 100644 --- a/app/channel.js +++ b/app/channel.js @@ -10,7 +10,7 @@ const config = require('../js/constants/buildConfig') // The current channel is retrieved first from the buildConfig constants file, // then the environments and finally defaults to dev var channel = config.channel || process.env.CHANNEL || 'dev' -let channels = new Set(['dev', 'beta', 'stable']) +let channels = new Set(['dev', 'beta', 'stable', 'developer', 'nightly']) if (!channels.has(channel)) { throw new Error(`Invalid channel ${channel}`) diff --git a/tools/buildPackage.js b/tools/buildPackage.js index 5e3f549cedc..01999551f31 100644 --- a/tools/buildPackage.js +++ b/tools/buildPackage.js @@ -32,9 +32,9 @@ var env = { CHANNEL: process.env.CHANNEL } -var channels = { dev: true, beta: true, stable: true } +var channels = { dev: true, beta: true, stable: true, nightly: true, developer: true } if (!channels[env.CHANNEL]) { - throw new Error('CHANNEL environment variable must be set to dev, beta or stable') + throw new Error('CHANNEL environment variable must be set to dev, beta, stable, nightly, or developer') } console.log('Writing buildConfig.js...')