@onivoro/onix 20.5.59 → 20.5.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/onix",
3
- "version": "20.5.59",
3
+ "version": "20.5.60",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
@@ -7,12 +7,16 @@ const deploy_lambda_function_1 = require("../../functions/deploy-lambda.function
7
7
  const pmx_function_1 = require("../../functions/pmx.function");
8
8
  const pm_function_1 = require("../../functions/pm.function");
9
9
  const executor_factory_function_1 = require("../../functions/executor-factory.function");
10
+ const load_env_file_function_1 = require("../../functions/load-env-file.function");
10
11
  const stdio = 'inherit';
11
12
  exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
12
- const { functionName, region, bucket, profile, roleArn, environment, memorySize, delayMs, handler, runtime, installFlags } = options;
13
+ const { functionName, region, bucket, profile, roleArn, environment, memorySize, delayMs, handler, runtime, installFlags, envFile } = options;
13
14
  const [apiProjectOutput] = (0, extract_project_build_outputs_function_1.extractProjectBuildOutputs)(context, context.projectName);
14
15
  (0, pmx_function_1.pmxSpawn)(context, `nx build ${context.projectName}`);
15
16
  (0, child_process_1.execSync)((0, pm_function_1.pm)(context).install + (installFlags ? ` ${installFlags}` : ''), { stdio, cwd: apiProjectOutput });
17
+ if (envFile) {
18
+ (0, load_env_file_function_1.loadEnvFile)(envFile);
19
+ }
16
20
  yield (0, deploy_lambda_function_1.deployLambda)({ functionName: functionName || context.projectName, sourcePath: apiProjectOutput, region, bucket, roleArn, profile, environment, memorySize, delayMs, handler, runtime });
17
21
  }));
18
22
  //# sourceMappingURL=executor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/deploy-lambda/executor.ts"],"names":[],"mappings":";;;AAEA,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GAAG,SAAS,CAAC;AAExB,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC9I,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAA,mEAA0B,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAEpF,IAAA,uBAAQ,EAAC,OAAO,EAAE,YAAY,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACrD,IAAA,wBAAQ,EAAC,IAAA,gBAAE,EAAC,OAAO,CAAC,CAAC,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAE3G,IAAI,OAAO,EAAE,CAAC;QACZ,IAAA,oCAAW,EAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IAED,MAAM,IAAA,qCAAY,EAAC,EAAE,YAAY,EAAE,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAEhM,CAAC,CAAA,CAAC,CAAC"}
@@ -2,4 +2,5 @@ import { DeployLambdaConfig } from "../../functions/deploy-lambda.function";
2
2
 
3
3
  export interface ExecutorSchema extends Omit<DeployLambdaConfig, 'sourcePath'> {
4
4
  installFlags?: string;
5
+ envFile?: string;
5
6
  }
@@ -9,6 +9,10 @@
9
9
  "type": "string",
10
10
  "description": "Name of the S3 bucket to use for uploading Lambda artifacts"
11
11
  },
12
+ "envFile": {
13
+ "type": "string",
14
+ "description": "Path and name of the .env file to load"
15
+ },
12
16
  "installFlags": {
13
17
  "type": "string",
14
18
  "description": "Additional arguments to insert after package manager install command"