]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
recipetool: create: npm: Add support to handle peer dependencies
authorBELOUARGA Mohamed <m.belouarga@technologyandstrategy.com>
Tue, 30 May 2023 22:27:50 +0000 (00:27 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jun 2023 10:07:51 +0000 (11:07 +0100)
commitf36021a749974ef3d4a6abe4d5429544a815071a
treeaa78f4f5e04f0fee577f1a6904a6e61c57af1fed
parent488d17c2af0c927ec66f0eee124bf6fc5b7f7c95
recipetool: create: npm: Add support to handle peer dependencies

NPM changed its manner to handle peer dependencies over its versions.
Before NPM 3: NPM installs automatically peer dependencies
between NPM 3 and 7: NPM shows a warning about peer dependencies
After NPM 3: NPM reworked its manner how to handle peer dependencies

The shrinkwrap doesn't have the parameters of the peer dependencies, so we cannot
fetch them. in the same time peer dependencies are not direct dependencies, they should
be installed as run time dependencies.

Signed-off-by: BELOUARGA Mohamed <m.belouarga@technologyandstrategy.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
scripts/lib/recipetool/create_npm.py