@friggframework/devtools 2.0.0--canary.545.a8d08b4.0 → 2.0.0--canary.545.077502a.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.
@@ -138,7 +138,25 @@ async function buildWithProvider({ provider, appDefinition, providerName }, opti
138
138
  console.log(` Generated ${Object.keys(entryPoints).length} function entry points`);
139
139
  }
140
140
 
141
- // 4. Generate env template (informational)
141
+ // 4. Copy lib entry points (re-export shims for runtime dependencies)
142
+ if (typeof provider.getLibEntryPoints === 'function') {
143
+ const libEntryPoints = provider.getLibEntryPoints(appDefinition);
144
+ const libDir = path.join(projectDir, 'netlify', 'lib');
145
+
146
+ fs.mkdirSync(libDir, { recursive: true });
147
+
148
+ for (const [filename, content] of Object.entries(libEntryPoints)) {
149
+ const filePath = path.join(libDir, filename);
150
+ fs.writeFileSync(filePath, content, 'utf-8');
151
+ if (options.verbose) {
152
+ console.log(` Written ${path.relative(projectDir, filePath)}`);
153
+ }
154
+ }
155
+
156
+ console.log(` Generated ${Object.keys(libEntryPoints).length} lib entry points`);
157
+ }
158
+
159
+ // 5. Generate env template (informational)
142
160
  if (typeof provider.generateEnvTemplate === 'function') {
143
161
  const envTemplate = provider.generateEnvTemplate(appDefinition);
144
162
  const missingEnvVars = Object.entries(envTemplate)
@@ -87,6 +87,21 @@ async function buildWithProvider(appDefinition, providerName, backendDir) {
87
87
  console.log(` Generated ${Object.keys(entryPoints).length} function entry points`);
88
88
  }
89
89
 
90
+ // 4. Generate lib entry points (re-export shims for runtime dependencies)
91
+ if (typeof provider.getLibEntryPoints === 'function') {
92
+ const libEntryPoints = provider.getLibEntryPoints(appDefinition);
93
+ const libDir = path.join(projectDir, 'netlify', 'lib');
94
+
95
+ fs.mkdirSync(libDir, { recursive: true });
96
+
97
+ for (const [filename, content] of Object.entries(libEntryPoints)) {
98
+ const filePath = path.join(libDir, filename);
99
+ fs.writeFileSync(filePath, content, 'utf-8');
100
+ }
101
+
102
+ console.log(` Generated ${Object.keys(libEntryPoints).length} lib entry points`);
103
+ }
104
+
90
105
  console.log(`\nBuild complete for ${providerName}.`);
91
106
 
92
107
  // Return an empty serverless definition — osls will see no functions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.545.a8d08b4.0",
4
+ "version": "2.0.0--canary.545.077502a.0",
5
5
  "bin": {
6
6
  "frigg": "./frigg-cli/index.js"
7
7
  },
@@ -25,9 +25,9 @@
25
25
  "@babel/eslint-parser": "^7.18.9",
26
26
  "@babel/parser": "^7.25.3",
27
27
  "@babel/traverse": "^7.25.3",
28
- "@friggframework/core": "2.0.0--canary.545.a8d08b4.0",
29
- "@friggframework/schemas": "2.0.0--canary.545.a8d08b4.0",
30
- "@friggframework/test": "2.0.0--canary.545.a8d08b4.0",
28
+ "@friggframework/core": "2.0.0--canary.545.077502a.0",
29
+ "@friggframework/schemas": "2.0.0--canary.545.077502a.0",
30
+ "@friggframework/test": "2.0.0--canary.545.077502a.0",
31
31
  "@hapi/boom": "^10.0.1",
32
32
  "@inquirer/prompts": "^5.3.8",
33
33
  "axios": "^1.7.2",
@@ -55,8 +55,8 @@
55
55
  "validate-npm-package-name": "^5.0.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@friggframework/eslint-config": "2.0.0--canary.545.a8d08b4.0",
59
- "@friggframework/prettier-config": "2.0.0--canary.545.a8d08b4.0",
58
+ "@friggframework/eslint-config": "2.0.0--canary.545.077502a.0",
59
+ "@friggframework/prettier-config": "2.0.0--canary.545.077502a.0",
60
60
  "aws-sdk-client-mock": "^4.1.0",
61
61
  "aws-sdk-client-mock-jest": "^4.1.0",
62
62
  "exit-x": "^0.2.2",
@@ -89,5 +89,5 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "a8d08b45032732af2fdc9062be3f9694a6d83a20"
92
+ "gitHead": "077502ad13dbadb47b18134e76fa3e936b0fbfd9"
93
93
  }