Luke Wyman
07/06/2021, 12:01 AMtsconfig.json
should be referenced?:
Resolve error: ENOENT: no such file or directory, stat './tsconfig.json'
Frank
sst start
?Frank
srcPath
for your functions?Luke Wyman
07/06/2021, 1:03 AMLuke Wyman
07/06/2021, 1:03 AMFrank
Luke Wyman
07/06/2021, 1:11 AMyarn create serverless-stack karaoke-backend-sst --language typescript
, and then structuring it like lerna-yarn-starter
.
I've tried that again from scratch, going incrementally, and was able to make a simple service and function in src/services/greetings
with a function called hello.ts
. That one I'm able to get to work just fine and it seems things are going better if I start small and work incrementally.
I think what I'm trying to wrap my head around is:
1. I haven't needed lerna yet, so I'm not sure how that's going to for monorepo. What am I not seeing that it's doing what I want so far?
2. The basics of typescript are working now, but since that's all included in sst, I'm flying a little blind about how to enhance my tsconfig
, .eslintrc.js
, prettier, etc.Frank
1. I haven’t needed lerna yet, so I’m not sure how that’s going to for monorepo.Lerna is primarily for managing the package versions, especially if you plan to publish some of ur packages. It also has a diff command that shows which packages have changed since a given commit
Frank
2. how to enhance myYou can configure linting through,tsconfig
, prettier.eslintrc.js
.eslintrc.json
. Or u can turn off linting in SST and manage linting urself. And you have full control over type checking and prettier. More details here - https://docs.serverless-stack.com/working-locally#linting--type-checkingLuke Wyman
07/06/2021, 1:49 AM