Moving from yarn to pnpm.

move_to_pnpm
Dessalines 4 months ago
parent 9a2fb8e7c2
commit ef08437b80

@ -3,6 +3,7 @@
variables:
- &rust_image "rust:1.75"
- &install_pnpm "corepack enable pnpm"
- &slow_check_paths
- path:
# rust source code
@ -182,11 +183,12 @@ steps:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
DO_WRITE_HOSTS_FILE: "1"
commands:
- *install_pnpm
- apt update && apt install -y bash curl postgresql-client
- bash api_tests/prepare-drone-federation-test.sh
- cd api_tests/
- yarn
- yarn api-test
- pnpm i
- pnpm api-test
when: *slow_check_paths
federation_tests_server_output:

File diff suppressed because it is too large Load Diff

@ -10,8 +10,8 @@ killall -s1 lemmy_server || true
./api_tests/prepare-drone-federation-test.sh
popd
yarn
yarn api-test || true
pnpm i
pnpm api-test || true
killall -s1 lemmy_server || true
killall -s1 pict-rs || true

File diff suppressed because it is too large Load Diff

@ -52,7 +52,7 @@ ask_to_auto_reload() {
done
if [ "$auto_reload_final" = 1 ]
then
cd ui && yarn start
cd ui && pnpm dev
cd server && cargo watch -x run
fi
}
@ -62,8 +62,9 @@ ask_to_init_db
# Build the web client
cd ui
yarn
yarn build
pnpm i
pnpm prebuild:prod
pnpm build:prod
# Build and run the backend
cd ../server

Loading…
Cancel
Save