Deploy production extension builds
Brian Vaughn committed
Apr 18, 2019 at 14:45 UTC
7930bad8c6a6a178fc132deb8f63f32f88d3b5c5
4 files changed
+8
-4
shells/browser/shared/deploy.js
+5
-1
@@ -9,7 +9,11 @@ const main = async buildId => {
9
const root = join(__dirname, '..', buildId);
10
const buildPath = join(root, 'build');
11
12
- execSync(`node ${join(root, './build')}`);
12
+ execSync(`node ${join(root, './build')}`, {
13
+ cwd: __dirname,
14
+ env: process.env,
15
+ stdio: 'inherit',
16
+ });
17
18
await exec(`cp ${join(root, 'now.json')} ${join(buildPath, 'now.json')}`, {
19
cwd: root,
shells/browser/shared/webpack.backend.js
+1
-1
@@ -3,7 +3,7 @@ const { resolve } = require('path');
3
const { DefinePlugin } = require('webpack');
4
const { getGitHubURL, getVersionString } = require('../../utils');
5
6
-const __DEV__ = process.env.NODE_ENV !== 'production';
6
+const __DEV__ = process.env.NODE_ENV === 'development';
7
8
const GITHUB_URL = getGitHubURL();
9
const DEVTOOLS_VERSION = getVersionString();
shells/browser/shared/webpack.config.js
+1
-1
@@ -4,7 +4,7 @@ const { DefinePlugin } = require('webpack');
4
const { getGitHubURL, getVersionString } = require('../../utils');
5
6
const NODE_ENV = process.env.NODE_ENV;
7
-const __DEV__ = NODE_ENV !== 'production';
7
+const __DEV__ = NODE_ENV === 'development';
8
9
const GITHUB_URL = getGitHubURL();
10
const DEVTOOLS_VERSION = getVersionString();
shells/dev/webpack.config.js
+1
-1
@@ -3,7 +3,7 @@ const { resolve } = require('path');
3
const { DefinePlugin } = require('webpack');
4
const { getGitHubURL, getVersionString } = require('../utils');
5
6
-const __DEV__ = process.env.NODE_ENV !== 'production';
6
+const __DEV__ = process.env.NODE_ENV === 'development';
7
8
const GITHUB_URL = getGitHubURL();
9
const DEVTOOLS_VERSION = getVersionString();