@architect/inventory 3.0.0-RC.1 → 3.0.0-RC.2
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 +1 -0
- package/package.json +1 -1
- package/src/defaults/index.js +3 -2
- package/src/lib/pragmas.js +1 -0
package/changelog.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- Added the concept of a `build` destination (currently only available via plugin)
|
|
15
15
|
- Added `handlerModuleSystem` property for `nodejs14.x` Lambdas, with a value of `cjs` or `esm` based on Lambda + Node.js conventions
|
|
16
16
|
- Added `handlerFile` detection for `nodejs14.x` + `deno` Lambdas
|
|
17
|
+
- Added `inv._arc.deployStage` property, enabling Inventory to be aware of an intended deploy stage; (this property may change, consider it in beta!)
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
### Changed
|
package/package.json
CHANGED
package/src/defaults/index.js
CHANGED
|
@@ -7,7 +7,7 @@ let { pragmas } = require('../lib')
|
|
|
7
7
|
* - Every possible officially supported value should be present
|
|
8
8
|
*/
|
|
9
9
|
module.exports = function inventoryDefaults (params = {}) {
|
|
10
|
-
let { cwd = process.cwd(), region } = params
|
|
10
|
+
let { cwd = process.cwd(), deployStage = null, region } = params
|
|
11
11
|
// Allow region env var override
|
|
12
12
|
region = region || process.env.AWS_REGION || 'us-west-2'
|
|
13
13
|
let defaultFunctionConfig = fnConfig()
|
|
@@ -16,7 +16,8 @@ module.exports = function inventoryDefaults (params = {}) {
|
|
|
16
16
|
_arc: {
|
|
17
17
|
version: 'Unknown', // @architect/architect semver (if installed)
|
|
18
18
|
defaultFunctionConfig, // Architect's default function config
|
|
19
|
-
pragmas, // Registry of all
|
|
19
|
+
pragmas, // Registry of all, Lambda, reserved, retired pragmas
|
|
20
|
+
deployStage, // Deploy stage of the running project (if specified)
|
|
20
21
|
},
|
|
21
22
|
_project: {
|
|
22
23
|
type: 'aws',
|