Serveless deploys all files under service's folder instead of just deploying the function file

I was surprised to find out all files under the users folder was deployed to a specific function. for example: create,get,list,update,delete files was deployed to create lambda function even so it only needs the create.js file. how can I tell serverless to deploy only the relevant files?

I’ve got the following files structure under users (REST API) folder:

users
–create.js
–get.js
–list.js
–update.js
–serverless.yml

with functions defined on yml like so:

functions:
create:
handler: create.handler
events:
- http:
path: users
method: post
etc…

got it,

at the top of the yml add exclude for all files

service: myService
package:
individually: true
exclude:
- ./**

and include per function:

functions:
create:
handler: create.handler
package:
include:
- create.js