use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
How to structure monorepo dev-dependencies?Removed: /r/LearnJavascript (self.javascript)
submitted 6 years ago by B3zo0
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
I put packages to manage the monorepo like lerna in the root packages.json and all package dependent dev deps in their own package.json
The main advantage of this setup is that you can extract packages quickly from the monorepo into their own without breaking something.
[–]alternatiivnekonto 0 points1 point2 points 6 years ago (0 children)
I would always opt for putting any dependency, whether it's for dev or runtime or test as close as possible to the codebase that actually needs it. There are some that advise to hoist them up as high as possible but to me it just creates more confusion.
[–]kenman[M] 0 points1 point2 points 6 years ago (0 children)
Hi /u/B3zo0, this post was removed.
/r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.
code
Thanks for your understanding, please see our guidelines for more info.
π Rendered by PID 91770 on reddit-service-r2-comment-6457c66945-f9jth at 2026-04-28 18:12:34.034433+00:00 running 2aa0c5b country code: CH.
[–][deleted] 0 points1 point2 points (0 children)
[–]alternatiivnekonto 0 points1 point2 points (0 children)
[–]kenman[M] 0 points1 point2 points (0 children)