How to use utility functions outside the serverless service inside the functions?

Hello everyone, I have been struggling with this issue for quite some time but couldnt find a solution. I have 3 folders in a monorepo this way:

/utils/
utility-function-1.js
utility-function-2.js
service1/
handler1.js
serverless.yaml
service2/
handler2.js
serverless.yaml

The problem here is handler1 and handler2 functions need utility-function-1.js and utility-function-2.js. Locally everything is working fine. But after doing sls deploy, utils/folder is not being packaged even after doing adding the below to package.json s of both services

"dependencies": {
    "utility-function-1": "file:../utils/utility-function-1.js",
   ...
  }

Am I doing something wrong? Thanks in Advance!