Skip to content

error when no exports.main #2

@purplecabbage

Description

@purplecabbage

if exports.main = main is missing from an action that is being run, the dev command currently returns the function definition and no error. Return an error in this case.

{
  "function": "/Users/jessem/repos/adobe/aio-all/test/test-dev-command/src/dx-excshell-1/actions/analytics/index.js",
  "web": "yes",
  "runtime": "nodejs:18",
  "inputs": {
    "LOG_LEVEL": "debug"
  },
  "annotations": {
    "require-adobe-auth": false,
    "final": true
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions