16 Commits
Author SHA1 Message Date
snowykte0426 75958d7ab1 fix(scripts): stop hiding build failures in the setup scripts
`prepare.sh` and `run-integration.sh` sent the build output to /dev/null and had no
shebang, no `set -e` and no exit status check. A failed build was invisible, the script
carried on into the Docker steps and still exited 0.

The `&>` redirect was also not portable. Under dash, which is /bin/sh on most Debian and
Ubuntu systems, it parses as "run in the background" plus a separate no-op redirect, so
the build raced the steps that followed instead of being muted.

Adds `#!/usr/bin/env bash` and `set -eu` to both scripts and drops the redirect.
`pipefail` is left out on purpose so the scripts still work when invoked with `sh` on a
dash system; neither script uses a pipeline and neither reads a shell variable.

Also corrects CONTRIBUTING.md. `npm run build` runs `move:node_modules`, which copies the
compiled output into the root `node_modules/@nestjs`; `move:samples` is a separate task
that only `build:samples` invokes. Two places claimed the build moves packages into the
`sample` directories. `prepare.sh` also starts Docker containers and waits for RabbitMQ,
which its description did not mention, and `npm run test` needs neither a build nor
Docker, so it now comes before the integration setup.
2026-08-30 20:13:06 +02:00
Kamil Myśliwiec f0c95c8d8a chore: merge master 2026-05-13 14:24:58 +02:00
Mysh3ll d3f55e90e2 test(integration): wait for rabbitmq before tests 2026-04-26 18:46:23 +02:00
Ali Hassan 557f964820 chore(scripts): support both docker compose v2 and docker-compose v1
Signed-off-by: Ali Hassan <ali-hassan27@outlook.com>
2026-04-21 12:42:17 +05:00
Kamil Mysliwiec a69109ee19 Merge branch '8.0.0' into fix-set-name-property-of-exception-object-equal-to-class-name 2021-01-27 12:09:34 +01:00
Kamil Myśliwiec 1e32627d17 scripts(): only generate package lock (update samples script) 2020-12-08 13:01:48 +01:00
Kamil Myśliwiec beb8fe36fc chore(): update samples dependencies 2020-12-08 12:31:55 +01:00
Karan Gupta e54c0e1c79 fix(common): set name of httpexception as class name
Added a method to set name property of exception object equal to class name which currently is always Error. Updated tests.

Closes #5809
2020-12-04 14:18:28 +05:30
Kamil Myśliwiec 5d2de5fd9a fix(): integration tests cleanup, update deps versions 2020-03-02 13:46:26 +01:00
Kamil Myśliwiec 8da95030fe scripts() clarify names of build tasks 2019-08-26 11:58:15 +02:00
John Biundo 4a7bb39c94 sample(new auth sample): matches new auth chapter 2019-06-19 12:26:20 -07:00
Toon van Strijp 21c22d5af3 change header interceptor in hello-world e2e to take multiple headers if needed. 2019-04-06 15:49:42 +02:00
Kamil Myśliwiec 2a5e22e2c6 scripts() fix prepare script (install all deps) 2018-12-29 10:21:18 +01:00
Kamil Myśliwiec ceabe7418a build: update CONTRIBUTION guide/scripts 2018-10-17 21:13:12 +02:00
Kamil Myśliwiec f8ffc2d064 chore(nestjs) add scripts directory 2018-10-03 17:23:36 +02:00
Kamil Myśliwiec 3a74c790bf chore(nestjs) add scripts directory 2018-10-03 17:00:08 +02:00