Skip to content

[Feature]: support function folders without a function.jsonc file #130

@kfirstri

Description

@kfirstri

Feature request

Today we expect the functions// folder to have a function.jsonc/json file specifying information about the project,
We want to be able to support the options to have just a index.ts file inside function folder and support this as default.

for example:

functions/my-func/
-- function.json
-- index.ts
functions/other-func/
-- index.ts

in this case we will recognize 2 functions -

  1. the my-func folder, the function name is taken from the function.json file "name" field, and the "entry" is used
  2. the other-func, we automatically grab the "index.ts" file (only valid name), and the function name will be other-func, or any folder name kebab-cased.

@claude please go over the code, plan and implement this feature, we should be able to handle it in the readProjectConfig and then in the push

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions