Use common methods and modules in 2 projects

I’ve NodeJS project created on firebase cloud functions that contain our backend service ( ExpressJS ) as http function and some other crons functions,
The project structure is like this :

/project ( home dir for all cloud function)
    - package.json
    - index.js ( contain the app backend funciton and other crons functions)
    - /src
        - /lib
        - /methods
        - routes.js ( loaded by app backend service )
        - /crons ( loaded in index.js )
            - funA.js
            - funB.js
        ...etc

And all the functions do make call to the lib & methods functions and some other helper functions, So when all deployed all files are deployed with it.

So now we moving to Cloud run, So im going to convert the app backend service from cloud function to docker container to run on cloud run.

Because now we have 2 different service, Cloud run for backend and cloud functions for crons, The new project structure:

/project 
    - package.json
    - index.js ( serve only express backend app )
    - DockerFile
    - /src
        - /lib
        - /methods 
        ...etc
    - /functions ( home dir for all cloud function)
        - package.json
        - index.js ( load crons functions )
        - /crons
            - funA.js
            - funB.js

The issue now is that crons make call to /lib and /methods, But when deploy to cloud functions it will not be included because its out of the app ( functions dir ).

Possiable solution for me is to just move out the /functions to new project and copy all methods / libs into it.

but this will be double work because we always make updates to /lib and /methods

Any suggest solutions ?