Sam Hulick
08/11/2021, 3:44 AM{
"name": "v2-microservices",
"version": "0.1.0",
"private": true,
"workspaces": [
"src/services/*"
],
"dependencies": {
"@serverless-stack/cli": "^0.37.2"
}
}
when I run yarn
, I see a node_modules folder pop up in src/services/mytest/
which I don’t think is supposed to happen. no other dependencies do this.. if I remove the SST CLI package and install a bunch of other stuff, it’s fine.
I’ve let one of the Yarn 2 maintainers know. not sure if this bug exists in Yarn 1Sam Hulick
08/11/2021, 3:45 AM{
"name": "mytest",
"packageManager": "yarn@3.0.0",
"dependencies": {
"data-api-client": "^1.2.0",
"http-errors": "^1.8.0",
"json-schema-to-ts": "^1.6.4"
},
"devDependencies": {
"@types/http-errors": "^1"
}
}
Frank
Sam Hulick
08/11/2021, 3:46 AMsrc/services/mytest/node_modules
├── http-errors
│ ├── HISTORY.md
│ ├── LICENSE
│ ├── README.md
│ ├── index.js
│ └── package.json
└── setprototypeof
├── LICENSE
├── README.md
├── index.d.ts
├── index.js
├── package.json
└── test
└── index.js
Frank
yarn
v1 as well, it’ has a .bin folder mostly.. nothing realFrank
Sam Hulick
08/11/2021, 3:59 AMSam Hulick
08/11/2021, 5:59 AM@serverless-stack/cli
requires a different version of http-errors
than my service uses. so it has to create a node_modules folder in the service subfolder to avoid a version conflict.Frank
http-errors
should be hoisted to the root:
/
node_modules/
http-errors/
@serverless-stack/
cli/
node_modules/
http-errors/
Frank
Sam Hulick
08/11/2021, 6:57 PM