@friggframework/serverless-plugin 2.0.0--canary.463.62579dd.0 → 2.0.0--canary.461.ec909cf.0

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.
Files changed (2) hide show
  1. package/index.js +10 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -107,6 +107,16 @@ class FriggServerlessPlugin {
107
107
  // AWS discovery is now handled directly in serverless-template.js
108
108
  // This hook remains for potential future use or other pre-package tasks
109
109
  this.serverless.cli.log("Frigg Serverless Plugin: Pre-package hook");
110
+
111
+ // Ensure .esbuild/.serverless directory exists to prevent ENOENT errors
112
+ // serverless-esbuild may try to access this directory during packaging
113
+ const fs = require('fs');
114
+ const path = require('path');
115
+ const esbuildDir = path.join(this.serverless.config.servicePath || process.cwd(), '.esbuild', '.serverless');
116
+
117
+ if (!fs.existsSync(esbuildDir)) {
118
+ fs.mkdirSync(esbuildDir, { recursive: true });
119
+ }
110
120
  }
111
121
 
112
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friggframework/serverless-plugin",
3
- "version": "2.0.0--canary.463.62579dd.0",
3
+ "version": "2.0.0--canary.461.ec909cf.0",
4
4
  "description": "Plugin to help dynamically load frigg resources",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,5 +11,5 @@
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
14
- "gitHead": "62579dd537cdc5d96c3d36e2441e56778c3a160a"
14
+ "gitHead": "ec909cf5076fa52ca3e914ee671a1c13c2cb11ee"
15
15
  }