From 2081c2fea8230b24abe6193a748fa8b0fd5682de Mon Sep 17 00:00:00 2001 From: Sugui Date: Fri, 29 Dec 2023 19:24:43 +0100 Subject: [PATCH] testing with npm, also moved types to dev --- .gitea/workflows/test.yaml | 4 ++-- package.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index ac511a2..bdaab3f 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -10,10 +10,10 @@ jobs: - name: Starting docker daemon run: docker-init -- dockerd --host=unix:///var/run/docker.sock & - name: Installing necessary packages - run: apk add nodejs git curl bash + run: apk add nodejs git curl bash nodejs - name: Check out repository code uses: actions/checkout@v3 - name: Install project dependencies - run: docker run -w /usr/src/app -v ./:/usr/src/app oven/bun:1 bun i --verbose + run: npm install #docker run -w /usr/src/app -v ./:/usr/src/app oven/bun:1 bun i --verbose - name: Run docker-compose run: docker compose down -v && docker compose run bot-api bun test \ No newline at end of file diff --git a/package.json b/package.json index 7d6fe8f..20be423 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "@types/jest": "^29.5.11", "@types/mongodb-memory-server": "^2.3.0", "@types/supertest": "^6.0.1", + "@types/express": "^4.17.21", + "@types/express-list-endpoints": "^6.0.3", + "@types/jsonwebtoken": "^9.0.5", + "@types/mongoose": "^5.11.97", "bun-types": "latest", "jest": "^29.7.0", "mongodb-memory-server": "^9.1.3", @@ -22,10 +26,6 @@ "test": "docker compose down -v && docker compose run bot-api bun test" }, "dependencies": { - "@types/express": "^4.17.21", - "@types/express-list-endpoints": "^6.0.3", - "@types/jsonwebtoken": "^9.0.5", - "@types/mongoose": "^5.11.97", "express": "^4.18.2", "express-list-endpoints": "^6.0.0", "jsonwebtoken": "^9.0.2",