Does multiple apps with a `sst.json` each imply mu...
# sst
j
Does multiple apps with a
sst.json
each imply multiple installations of SST?
I'm trying to set up a second app in a monorepo but I ran into a problem because all my dependencies, including SST CLI, are installed at the root `package.json`:
Copy code
> nx run sync-functions:build --verbose                                                                
Preparing your SST app                                                                                  
No valid package.json found in /../nx-workspace/apps/sync-functions/package.json
Here's how my directories look like:
Copy code
.
├── apps
│   ├── sync-functions    # <-  2nd SST app
│   │   ├── lib
│   │   ├── src
│   │   ├── test
│   │   └── sst.json
├── cdk.context.json
├── infra                 # <- first/main SST app
│   ├── cdk.out
│   ├── src
│   ├── lib
│   └── test
│   └── index.ts
├── libs
├── nx.json
├── package.json          # <- @serverless-stack/cli listed here w/ all deps
├── package-lock.json
└── sst.json
Root `sst.json`:
Copy code
{
  "name": "MyWorkspace",
  "stage": "dev",
  "region": "us-west-2",
  "lint": false,
  "typeCheck": false,
  "main": "infra/index.ts"
}
`apps/sync-functions/sst.json`:
Copy code
{
  "name": "sync-functions",
  "stage": "dev",
  "region": "us-west-2",
  "lint": false,
  "typeCheck": false
}
I created a symbolic link for now. It seems to be working:
Copy code
ln -s ../../package.json apps/sognisport-sync/package.json
f
Hey @Josias Duarte Busiquia, let me think about this and get back to you!