quidproquo-deploy-webpack 0.0.87 → 0.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ declare function _exports(source: any): string;
2
+ export = _exports;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ module.exports = function (source) {
3
+ const config = JSON.parse(process.env.QPQLoaderConfig);
4
+ const userDirectoryEmailTemplates = config.userDirectoryEmailTemplates;
5
+ const result = `module.exports = ${JSON.stringify(userDirectoryEmailTemplates, null, 2)};`;
6
+ // console.log(result);
7
+ return result;
8
+ };
@@ -28,14 +28,15 @@ const getWebpackConfig = (qpqConfig, buildPath, awsLambdasToBuild) => {
28
28
  qpqConfig,
29
29
  customActionProcessorSources,
30
30
  projectRoot: quidproquo_core_1.qpqCoreUtils.getConfigRoot(qpqConfig),
31
+ userDirectoryEmailTemplates: quidproquo_core_1.qpqCoreUtils.getUserDirectoryEmailTemplates(qpqConfig),
31
32
  });
32
33
  return {
33
34
  entry: awsLambdasToBuild.reduce((acc, name) => (Object.assign(Object.assign({}, acc), { [name]: `quidproquo-deploy-awscdk/src/lambdas/${name}.ts` })), {}),
34
35
  resolveLoader: {
35
36
  modules: [path_1.default.resolve(__dirname, 'loaders'), 'node_modules'],
36
37
  },
37
- // mode: getWebpackBuildMode(qpqConfig),
38
- mode: 'production',
38
+ mode: getWebpackBuildMode(qpqConfig),
39
+ // mode: 'production',
39
40
  externals: [/aws-sdk/],
40
41
  target: 'node',
41
42
  output: {
@@ -82,6 +83,7 @@ const getWebpackEntryNames = () => [
82
83
  'lambdaEventViewerRequest',
83
84
  'lambdaServiceFunctionExecute',
84
85
  'lambdaSQSEvent',
86
+ 'lambdaCognitoTriggerEvent_CustomMessage',
85
87
  ];
86
88
  exports.getWebpackEntryNames = getWebpackEntryNames;
87
89
  const getSeoWebpackConfig = (qpqConfig, outputPath) => (0, exports.getWebpackConfig)(qpqConfig, outputPath || 'build', [
@@ -95,6 +97,7 @@ const getApiWebpackConfig = (qpqConfig, outputPath) => (0, exports.getWebpackCon
95
97
  'lambdaAPIGatewayEvent',
96
98
  'lambdaServiceFunctionExecute',
97
99
  'lambdaSQSEvent',
100
+ 'lambdaCognitoTriggerEvent_CustomMessage',
98
101
  ]);
99
102
  exports.getApiWebpackConfig = getApiWebpackConfig;
100
103
  const getAllWebpackConfig = (qpqConfig, outputPath) => (0, exports.getWebpackConfig)(qpqConfig, outputPath || 'build', (0, exports.getWebpackEntryNames)());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-deploy-webpack",
3
- "version": "0.0.87",
3
+ "version": "0.0.89",
4
4
  "description": "",
5
5
  "main": "./lib/webpack.config.js",
6
6
  "types": "./lib/webpack.config.d.js",