Skip to content

Commit

Permalink
add missing compat file for sls executor (#95)
Browse files Browse the repository at this point in the history
* fix(nx-serverless): Create deploy package.json with proper external modules/dependencies (#89)

* Create deploy package.json with proper external modules/dependencies

* Modify Stats Config to Always have chunks and modules in chunks to get external modules

* add missing compat file for sls executor

Co-authored-by: Brain Weasner <84519320+brian-weasner@users.noreply.github.com>
Co-authored-by: Wick <voravit@flowaccount.com>
  • Loading branch information
3 people authored Nov 3, 2021
1 parent 6374f94 commit c66d8ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions libs/nx-serverless/src/builders/sls/compat.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { convertNxExecutor } from '@nrwl/devkit';

import { slsExecutor } from './sls.impl';

export default convertNxExecutor(slsExecutor);
4 changes: 2 additions & 2 deletions libs/nx-serverless/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ function getStatsConfig(options: BuildBuilderOptions) {
timings: false,
cached: false,
cachedAssets: false,
chunks: true, // Required to get external modules
chunkModules: true, // Required to get external modules
modules: true,
warnings: true,
errors: true,
colors: !options.verbose && !options.statsJson,
chunks: true, // Required to get external modules
chunkModules: true,
assets: !!options.verbose,
chunkOrigins: !!options.verbose,
children: !!options.verbose,
Expand Down

0 comments on commit c66d8ab

Please sign in to comment.