thdxr
07/15/2021, 3:54 PMlib
with sst.jsonJay
geekmidas
07/15/2021, 7:41 PMJay
Frank
sst.json
?
{
"name": "playground",
"stage": "dev",
"region": "us-east-1",
"path_to_stack_definition": "lib"
}
If so, what should we we call this field?Frank
main"
, and it points to the index.js
file. So sst.json
would look like this:
{
"name": "playground",
"stage": "dev",
"region": "us-east-1",
"main": "infra/index.js"
}
Frank
geekmidas
07/16/2021, 9:41 PMlib/
is being created in the .build
when running the tests. I am struggling to find where this is being done, anyone free to help? @Frank @JayFrank
Frank
Jay
lib
dir. Is that what you were looking for @geekmidas?geekmidas
07/17/2021, 8:26 AMlib/
and having the result of that moved to .build/
I'm not sure where that is happening I made the change to look for the main
inside sst.json
, the issue I'm having now is the fact that my infra/index.js
is using ES6
imports and they can't be resolved in that context. Meaning I am missing some build step.Jay
lib/index.js
here https://github.com/serverless-stack/serverless-stack/blob/master/packages/cli/scripts/util/cdkHelpers.js#L252. And the path itself is coming from https://github.com/serverless-stack/serverless-stack/blob/master/packages/cli/scripts/util/paths.js#L22. Take a look and let me know if that helps.geekmidas
07/18/2021, 5:25 AMgeekmidas
07/18/2021, 2:06 PMFrank
Frank
Frank
{
"name": "my-sst-app",
"stage": "dev",
"region": "us-east-1",
"main": "infra/index.js"
}
thdxr
07/21/2021, 10:41 AM