@friggframework/serverless-plugin 2.0.0--canary.461.84ff4f5.0 → 2.0.0--canary.461.7b36f0f.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.
- package/index.js +10 -0
- 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.461.
|
|
3
|
+
"version": "2.0.0--canary.461.7b36f0f.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": "
|
|
14
|
+
"gitHead": "7b36f0f437980499b06c66adc4ddbc3e80f6d8e6"
|
|
15
15
|
}
|