From 3cc50972947eccb18fd1c1fbb2cdf59a1165f8b8 Mon Sep 17 00:00:00 2001 From: Romain Thouvenin Date: Tue, 27 Feb 2024 13:44:11 +0100 Subject: [PATCH] Add REPL module and script --- package.json | 1 + src/repl.ts | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src/repl.ts diff --git a/package.json b/package.json index 1023765..00f9284 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "test:integration:ci": "npm run migrate:test:ci && dotenv -e ci/.env.ci -- jest --testPathPattern 'tests/integration/' --runInBand", "test:cov": "jest --testPathPattern 'tests/unit/' --coverage", "test:e2e": "jest --config ./test/jest-e2e.json", + "repl": "docker exec -it v3-auth-api npm run start -- --entryFile repl", "migrate": "docker exec v3-auth-api sh -c 'npx prisma migrate deploy'", "migrate:dev": "docker exec v3-auth-api sh -c 'npx prisma migrate dev'", "migrate:test": "dotenv -e .env.test -- npx prisma migrate deploy", diff --git a/src/repl.ts b/src/repl.ts new file mode 100644 index 0000000..aacc742 --- /dev/null +++ b/src/repl.ts @@ -0,0 +1,7 @@ +import { repl } from '@nestjs/core'; +import { AppModule } from './app.module'; + +async function bootstrap() { + await repl(AppModule); +} +bootstrap();