You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the reference architecture for multiple NodeJsFunction's, where we have a package.json for each function, this seems to work but I have the following questions:
When doing it like this, I don't only need the root project's package-lock.json, this means I never need to do npm install in the children directories, right?
If I were to create a 'shared library' in my mono repo /shared/logging/index.ts that is imported and used by one of the functions (and this shared package has a dependency that one of my functions doesn't need directly) would I need to add that dependency to the functions package.json? Is this pattern discouraged or should I build a layer instead?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using the reference architecture for multiple
NodeJsFunction
's, where we have apackage.json
for each function, this seems to work but I have the following questions:package-lock.json
, this means I never need to donpm install
in the children directories, right?/shared/logging/index.ts
that is imported and used by one of the functions (and this shared package has a dependency that one of my functions doesn't need directly) would I need to add that dependency to the functionspackage.json
? Is this pattern discouraged or should I build a layer instead?Beta Was this translation helpful? Give feedback.
All reactions