@thegetty/quire-cli 1.0.0-pre-release.9 → 1.0.0-pre-release.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -19,5 +19,5 @@ Changelog entries are classified using the following labels:
19
19
  - `Removed`: for deprecated features removed in this release
20
20
 
21
21
 
22
- ## [1.0.0-pre-release]
22
+ ## [Unreleased]
23
23
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thegetty/quire-cli",
3
3
  "description": "Quire command-line interface",
4
- "version": "1.0.0-pre-release.9",
4
+ "version": "1.0.0-pre-release.10",
5
5
  "author": "Getty Digital",
6
6
  "license": "J Paul Getty Trust",
7
7
  "bugs": {
@@ -94,6 +94,7 @@ export default {
94
94
  console.info('[CLI:11ty] running eleventy build')
95
95
  console.info(`[CLI:11ty] projectRoot ${projectRoot}`)
96
96
 
97
+ process.env.ELEVENTY_ENV = 'production'
97
98
  if (options.debug) process.env.DEBUG = 'Eleventy*'
98
99
 
99
100
  const eleventy = await factory(options)
@@ -105,6 +106,7 @@ export default {
105
106
  serve: async (options = {}) => {
106
107
  console.info('[CLI:11ty] running development server')
107
108
 
109
+ process.env.ELEVENTY_ENV = 'development'
108
110
  if (options.debug) process.env.DEBUG = 'Eleventy*'
109
111
 
110
112
  const eleventy = await factory(options)
@@ -43,13 +43,15 @@ export default {
43
43
  build: async (options = {}) => {
44
44
  console.info('[CLI:11ty] running eleventy build')
45
45
 
46
- const eleventyCommand = factory()
46
+ const eleventyCommand = factory(options)
47
47
 
48
48
  /**
49
49
  * Set execa environment variables
50
50
  * @see https://github.com/sindresorhus/execa#env
51
51
  */
52
- const execaEnv = {}
52
+ const execaEnv = {
53
+ ELEVENTY_ENV: 'production'
54
+ }
53
55
 
54
56
  if (options.debug) execaEnv.DEBUG = 'Eleventy*'
55
57
 
@@ -74,7 +76,9 @@ export default {
74
76
  * Set execa environment variables
75
77
  * @see https://github.com/sindresorhus/execa#env
76
78
  */
77
- const execaEnv = {}
79
+ const execaEnv = {
80
+ ELEVENTY_ENV: 'development'
81
+ }
78
82
 
79
83
  if (options.debug) execaEnv.DEBUG = 'Eleventy*'
80
84