Answer the question
In order to leave comments, you need to log in
Yarn division into libs and dependencies, how to organize a project?
Previously, when building a project, I used npm + bower, pulled libraries into libs through bower, the rest flew into node_modules.
I want to figure out how to achieve this using only yarn or npm?
Answer the question
In order to leave comments, you need to log in
npm install lib --save
in dependencies in package.json, npm install dep --save-dev
in devDependencies. Everything gets into node_modules, the developer basically doesn't care where exactly the libraries are located.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question