phero icon indicating copy to clipboard operation
phero copied to clipboard

Directory assumptions

Open kamilafsar opened this issue 2 years ago • 0 comments

We assume things about dist and src in server and client projects, which we've worked around in the examples by adding the following in tsconfig:

"outDir": "./dist",
"rootDir": "./src",

Also check for other places in server/client generation

  • [ ] Server: read tsconfig to find out where the source is for samen.ts (now src)
  • [ ] Server: read tsconfig to find out where to build to (now dist)
  • [ ] Check out: https://github.com/samen-io/samen/blob/next-gen/packages/server/src/commands/build.ts#L27-L32
  • [ ] Client: read tsconfig to find out where the source is for samen.generated.ts (now src)

kamilafsar avatar Sep 30 '22 11:09 kamilafsar