Skip to content

Importing a file from outside functions create error at build #1

@blaforet

Description

@blaforet

Hi

In my main project have a generic common.ts file where I put some functions and constants.
If I import this file into the functions, the "run deploy" does not work.
It creates some build error and screws up the lib directory.
It no longer updates the lib\index.js instead, it creates a new subfolder lib\functions\ and put everything there, like if it was the lib folder.

Therefore I need to duplicate my common.ts file and update it every time that I do change in the functions. It's not the best practice especially if I forget.

Any suggestion?
Thank you
Benoit L.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions