Skip to content

Support non TS handlers #78

Closed
Closed
@ro-savage

Description

@ro-savage

This plugin should handle having handles with both the .js and .ts extension, and simply not transpile the .js files.

I wanted to convert my current serverless project to TS, and only rename TS files once I've updated them.

Currently we get an error that looks like

Serverless: Using local tsconfig.json
{ file: undefined,
  start: undefined,
  length: undefined,
  messageText: 'File \'myfunction.ts\' not found.',
  category: 1,
  code: 6053 }

  Type Error ---------------------------------------------

  Cannot read property 'getLineAndCharacterOfPosition' of undefined

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions