dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Questions: Does anyone use this with firebase? Canʻt seem to find a way to get it to work..

kalani96746 opened this issue · comments

I love this tool..i use it for devops work when using the firebaseadmin sdk to execute things against my firestore database from my computer..running scripts and such to convert data...Iʻm able to pull in domain objects from another related project using it..

    "paths": {
        "*": ["src/*"],
        "@domain/*": [
            "../../angular/src/app/domain/*"
        ],
    },

because every "project" has three subprojects

  1. "script-manager" (the above mentioned use of tsconfig-paths_
  2. "angular" which is our front end code
  3. "firebase" which is our server-side firebase functions code and triggers

All three projects use the same domain files as they represent whats saved to the database as entities. Theyʻre all typescript... I was able to point @Domain to my domains folder in the angular project using this project.

However Iʻve been unable to do this with firebase...
Firebase functions are deployed using a command line tool.

Is there any way to get them working with firebase functions?