Currently, I am following the steps outlined in this Getting Started guide to set up the installation of tsoa
. According to their instructions, I have created a routes.ts
folder and placed it under /build
:
/build
/routes.ts
Next, in /src/app.tsx
, I make a reference to it:
import { RegisterRoutes } from "/build/routes"
However, when I execute
yarn run tsc --outDir build --experimentalDecorators
, I encounter an unexpected directory structure within /build
:
/build
/build
/src
server.js
routes.ts
This issue seems to be occurring because of the way I am referencing "/build/routes"
, resulting in both /build
and /src
being copied into /build
. What I actually desire is only the contents of /src
to be copied into the build.
/build
routes.ts
server.js
Even after adding includes: ["src"]
to my tsconfig.json
, the problem persists.
I'm curious if there might be something specific I've done locally that could be causing this behavior?