Skip to content

Commit

Permalink
fix(nx-serverless): set serviceDir earlier in the deploy process
Browse files Browse the repository at this point in the history
  • Loading branch information
tstackhouse committed Dec 29, 2021
1 parent 2052b7b commit 2d07b88
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions libs/nx-serverless/src/utils/serverless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,8 @@ export class ServerlessWrapper {
serviceDir: buildOptions.servicePath,
configurationFilename: configFileName,
};
if (
deployOptions &&
deployOptions.function &&
deployOptions.function != ''
) {
serverlessConfig.servicePath = getPackagePath(deployOptions);
if (deployOptions) {
serverlessConfig.serviceDir = getPackagePath(deployOptions);
}
this.serverless$ = new Serverless(serverlessConfig);
// if (componentsV2.runningComponents()) return () => componentsV2.runComponents();
Expand Down

0 comments on commit 2d07b88

Please sign in to comment.