Closed jimmyorpheus closed 6 months ago
Sorry, my mistake. There was no package.json in my service folder, therefore the plugin's npm-package was installed to the compose root-folder, which already had a package.json containing the @serverless/compose dev dependency. I just had to initialize an npm package in the service folder and then the sls plugin install --name=serverless-somePlugin --service=someService
command would work as expected.
Are you certain it's a bug?
Are you using the latest version?
Is there an existing issue for this?
Issue description
When executing the following command
from the serverless-compose root-folder (the folder with the serverless-compose.yml file), the plugin is correctly added to the configuration at ./someService/serverless.yml):
But the npm package of the plugin is installed directly at the compose level
instead of being installed to the subfolder of the specific service which the plugin is meant for.
Service configuration (serverless-compose.yml) content
Command name and used flags
sls plugin install --name=serverless-somePlugin --service=someService
Command output