Maxime
02/18/2022, 9:53 AMback/
subdirectory. Inside this subdirectory is a yarn mono-repo, with all dependencies installed at back/
level.
To make Seed installing dependencies, I copy the package.json and yarn.lock files at the root level during the 'before compile' step of the Seed.yml.
I don't know why, but Seed decided to install dependencies using npm instead of yarn, despite the yarn.lock file.
Any idea why? Or any way to force Seed using yarn?Frank
Compile
step.Frank
yarn.lock
either in the root of the repo, or in the service folder, it will use yarn.Frank
yarn.lock
in either of those 2 folders?Maxime
02/21/2022, 8:11 AMback/
level, as no dependencies are installed at the root level and each Yarn workspace only has a package.json fileMaxime
02/21/2022, 8:12 AMFrank
yarn.lock
at the service level ie. back/
, Seed should use Yarn.Frank
Frank
Maxime
02/22/2022, 8:24 AMFrank
back/
Frank
compile
hook in side ur seed.yml
, ie.
compile:
- yarn install
This will override the default behavior of Seed doing an npm/yarn install
at the root and at the service level.Frank
Maxime
02/23/2022, 8:17 AMMaxime
03/11/2022, 10:09 AM