@biffo/cli 0.390.0 → 0.392.0

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.
@@ -133,7 +133,7 @@ module "plugin_<name>" {
133
133
  project_name = var.project_name
134
134
  environment = local.environment
135
135
  plugin_name = "<name>"
136
- handler = "src.lambda.main.handler"
136
+ handler = "<name>.main.handler"
137
137
  event_bus_name = module.events.event_bus_name
138
138
  core_api_url = module.api_gateway.api_endpoint
139
139
  tags = local.tags
@@ -14,7 +14,7 @@ variable "plugin_name" {
14
14
  }
15
15
 
16
16
  variable "handler" {
17
- description = "Lambda handler entrypoint, e.g. `src.lambda.main.handler` per the plugin repo layout in ADR-0003 section 2."
17
+ description = "Lambda handler entrypoint, e.g. `<name>.main.handler` per the plugin repo layout in ADR-0003 section 2."
18
18
  type = string
19
19
  }
20
20
 
package/dist/index.js CHANGED
@@ -3604,7 +3604,7 @@ import {
3604
3604
  } from "fs";
3605
3605
  import { join as join13, relative as relative2, sep as sep2 } from "path";
3606
3606
  var TEMPLATE_MODULE_DIR = "_template";
3607
- var DEFAULT_PLUGIN_HANDLER = "src.lambda.main.handler";
3607
+ var defaultPluginHandler = (name) => `${name}.main.handler`;
3608
3608
  var GENERATED_TF_FILE = "plugins.generated.tf";
3609
3609
  var GENERATED_TFVARS_FILE = "plugins.auto.tfvars.json";
3610
3610
  function standardArguments(pluginName, handler) {
@@ -3907,7 +3907,7 @@ function renderGeneratedTerraform(plugins) {
3907
3907
  (p) => renderModuleBlock(
3908
3908
  p.name,
3909
3909
  p.declaredVariables,
3910
- p.handler ?? DEFAULT_PLUGIN_HANDLER,
3910
+ p.handler ?? defaultPluginHandler(p.name),
3911
3911
  p.source ?? THIRD_PARTY_TERRAFORM(p.name),
3912
3912
  p.declaredOutputs ?? /* @__PURE__ */ new Set()
3913
3913
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.390.0",
3
+ "version": "0.392.0",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",