Skip to content

Instantly share code, notes, and snippets.

View florianbepunkt's full-sized avatar

Florian Bischoff florianbepunkt

  • Berlin, Germany
View GitHub Profile
/**
/* An attempt to make the error handling process described on Khalil Stemmler's excellent
/* blog a little somewhat simpler.
/* https://khalilstemmler.com/articles/enterprise-typescript-nodejs/functional-error-handling/
/**
// Left and Right classes, but more specific to error handling.
class Failure<L, A = any> {
readonly error: L;
diff --git a/lib/packExternalModules.js b/lib/packExternalModules.js
index f45f6a6827e55c0363d005ed0a2d012cc60b3d46..0dd66e50edb29ca4861749cb65ece7fef51f1969 100644
--- a/lib/packExternalModules.js
+++ b/lib/packExternalModules.js
@@ -335,10 +335,13 @@ module.exports = {
// (1.a.1) Create a package.json
const compositePackage = _.defaults(
{
- name: this.serverless.service.service,
+ name: `${this.serverless.service.service}-dependencies`,