monkeytype/backend
Nad Alaba 932d0e166e
build: fix openapi spec path for docs & stats endpoints on dev (@NadAlaba) (#6343)
### Description

1. fix openapi specification path so that /docs endpoint would work on
dev.

> Error: ENOENT: no such file or directory, stat
'backend/src/static/api/public.html' Stack: Error: ENOENT: no such file
or directory

2. fix openapi specification path so that API Operation would work on
/stats endpoint on dev.

> Cannot read openApi specification from
backend/src/api/routes/../../static/api/openapi.json. Swagger stats will
not fully work.

![stats](https://github.com/user-attachments/assets/82f3e8b4-814c-4ede-ba67-8da53dacad87)

3. remove unneeded `files` & `ts-node` options from `tsconfig.json` in
various places.

> File 'backend/src/types/types.d.ts' not found.
  The file is in the program because:
    Part of 'files' list in tsconfig.json

4. add the missing `pnpm test` script to the funbox package.
2025-03-12 16:20:46 +01:00
..
__migration__ refactor: remove global type namespaces (@miodec) (#5907) 2024-09-23 15:34:16 +02:00
__tests__ build: fix openapi spec path for docs & stats endpoints on dev (@NadAlaba) (#6343) 2025-03-12 16:20:46 +01:00
docker chore: update mongodb version to 5.0.13 (@fehmer) (#6364) 2025-03-12 15:29:19 +01:00
email-templates chore: replace twitter urls with x (unrealapex) (#5541) 2024-07-01 13:53:49 +02:00
private fix(docker): fix configuration endpoint, add configuration export (@fehmer) (#6317) 2025-02-27 10:48:59 +01:00
redis-scripts feat: leaderboards remake, weekly xp leaderboards (@miodec) (#6250) 2025-02-12 16:34:03 +01:00
scripts build: fix openapi spec path for docs & stats endpoints on dev (@NadAlaba) (#6343) 2025-03-12 16:20:46 +01:00
src build: fix openapi spec path for docs & stats endpoints on dev (@NadAlaba) (#6343) 2025-03-12 16:20:46 +01:00
.eslintrc.cjs refactor: restructure project to a true monorepo (#5626) 2024-07-22 15:08:11 +02:00
.gitignore fixed ignore 2022-03-07 14:39:09 +01:00
example.env impr(dev): allow docker compose to start the backend server (plbstl, Miodec) (#4995) 2024-02-28 14:17:09 +01:00
knip.json added knip to find unused exports 2023-08-10 18:32:33 +02:00
package.json chore: update @redocly/cli (@fehmer) (#6255) 2025-02-11 13:52:36 +01:00
redocly.yaml chore: update @redocly/cli (@fehmer) (#6255) 2025-02-11 13:52:36 +01:00
tsconfig.json build: fix openapi spec path for docs & stats endpoints on dev (@NadAlaba) (#6343) 2025-03-12 16:20:46 +01:00
vitest.config.js ci: fix backend vitest.config (@fehmer) (#5780) 2024-08-14 13:07:00 +02:00