# How to solve an existential issue serverless".ts" vs ".yml"

**URL:** <https://forum.serverless.com/t/how-to-solve-an-existential-issue-serverless-ts-vs-yml/15511>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [July 8, 2021, 12:09am UTC](https://forum.serverless.com/t/how-to-solve-an-existential-issue-serverless-ts-vs-yml/15511 "2021-07-08T00:09:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edercarloscosta](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/edercarloscosta/32/5964_2.png) [@edercarloscosta](https://forum.serverless.com/u/edercarloscosta)\
**Post date:** [July 8, 2021, 12:09am UTC](https://forum.serverless.com/t/how-to-solve-an-existential-issue-serverless-ts-vs-yml/15511/1 "2021-07-08T00:09:35Z")

</div>

Hi guys,

Hi guys,  
I just can’t fix a problem that exist because I did generate my serverless app by template “aws-nodejs-typescript”. The issue basically happens because this template generates serverless.ts that can’t be selected on CI/CD obviously because it’s not right extension.

My nightmare begins when I try to transcode my .ts functions schema right there on serverless.ts to serverless.yml.

YES I think make sense keep it on .yml file not .ts.

So the question here is how do I keep the smart schema generated by .ts and make it happens on .yml.

i.e:  
1 - On serverless.ts generated by template we see:

```auto
import HttpPostProduct from '@functions/product/httpPost';
import HttpPutProduct from '@functions/product/httpPut';
import HttpScanProduct from '@functions/product/httpScan';
import HttpGetProduct from '@functions/product/httpGet';
import HttpDeleteProduct from '@functions/product/httpDelete';
...

functions: { 
    HttpPostProduct,
    HttpPutProduct,
    HttpScanProduct,
    HttpGetProduct
    HttpDeleteProduct,
  },

```

2 - The same on serverless.yml we’ll see

```auto
functions:
  create:
    handler: functions/product/httpPost
    events:
      - http:
          path: product
          method: post
  update:
    handler: functions/product/httpPut
    events:
      - http:
          path: product/{id}
          method: put

```

So, I just want to keep the option 1 on .yml schema but my sls deploy doesn’t work like that

I’ll appreciate any help.  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![beenmeckel](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@beenmeckel](https://forum.serverless.com/u/beenmeckel)\
**Post date:** [August 7, 2021, 8:51pm UTC](https://forum.serverless.com/t/how-to-solve-an-existential-issue-serverless-ts-vs-yml/15511/2 "2021-08-07T20:51:36Z")

</div>

what do you mean “how dare you”? it’s just Array#frist() because some people want to be slightly more expressive that this is the first element, not the 0th… certainly nothing to do with [Kodi](https://kodi.software/) [nox](https://nox.uno/) the youtube comment section,
