@friggframework/devtools 2.0.0--canary.454.1c50057.0 → 2.0.0--canary.454.d57d533.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.
|
@@ -34,10 +34,10 @@ const LAYER_NODE_MODULES = path.join(LAYER_OUTPUT_PATH, 'nodejs/node_modules');
|
|
|
34
34
|
|
|
35
35
|
// Packages to include in the layer
|
|
36
36
|
const PRISMA_PACKAGES = [
|
|
37
|
-
'@prisma/client',
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'prisma',
|
|
37
|
+
'@prisma/client', // From project node_modules
|
|
38
|
+
'generated/prisma-mongodb', // From @friggframework/core package
|
|
39
|
+
'generated/prisma-postgresql', // From @friggframework/core package
|
|
40
|
+
'prisma', // CLI from project node_modules
|
|
41
41
|
];
|
|
42
42
|
|
|
43
43
|
// Binary patterns to remove (non-rhel)
|
|
@@ -123,13 +123,14 @@ async function createLayerStructure() {
|
|
|
123
123
|
async function copyPrismaPackages() {
|
|
124
124
|
logStep(3, 'Copying Prisma packages from @friggframework/core');
|
|
125
125
|
|
|
126
|
-
// Prisma packages can be in:
|
|
127
|
-
// 1.
|
|
128
|
-
// 2.
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
126
|
+
// Prisma packages can be in different locations:
|
|
127
|
+
// 1. Standard npm packages (@prisma/client, prisma): in node_modules
|
|
128
|
+
// 2. Generated clients (generated/*): in @friggframework/core package itself
|
|
129
|
+
const searchPaths = [
|
|
130
|
+
path.join(CORE_PACKAGE_PATH, 'node_modules'), // Core's own node_modules
|
|
131
|
+
path.join(PROJECT_ROOT, 'node_modules'), // Project root node_modules
|
|
132
|
+
CORE_PACKAGE_PATH, // Core package itself (for generated/ dirs)
|
|
133
|
+
];
|
|
133
134
|
|
|
134
135
|
let copiedCount = 0;
|
|
135
136
|
let missingPackages = [];
|
|
@@ -137,9 +138,9 @@ async function copyPrismaPackages() {
|
|
|
137
138
|
for (const pkg of PRISMA_PACKAGES) {
|
|
138
139
|
let sourcePath = null;
|
|
139
140
|
|
|
140
|
-
// Try to find package in
|
|
141
|
-
for (const
|
|
142
|
-
const candidatePath = path.join(
|
|
141
|
+
// Try to find package in search paths
|
|
142
|
+
for (const searchPath of searchPaths) {
|
|
143
|
+
const candidatePath = path.join(searchPath, pkg);
|
|
143
144
|
if (await fs.pathExists(candidatePath)) {
|
|
144
145
|
sourcePath = candidatePath;
|
|
145
146
|
break;
|
|
@@ -155,8 +156,10 @@ async function copyPrismaPackages() {
|
|
|
155
156
|
return !src.includes('/node_modules/node_modules/');
|
|
156
157
|
}
|
|
157
158
|
});
|
|
158
|
-
const fromLocation = sourcePath.includes('@friggframework/core/
|
|
159
|
-
? 'core package'
|
|
159
|
+
const fromLocation = sourcePath.includes('@friggframework/core/generated')
|
|
160
|
+
? 'core package (generated)'
|
|
161
|
+
: sourcePath.includes('@friggframework/core/node_modules')
|
|
162
|
+
? 'core node_modules'
|
|
160
163
|
: 'project root';
|
|
161
164
|
logSuccess(`Copied ${pkg} (from ${fromLocation})`);
|
|
162
165
|
copiedCount++;
|
|
@@ -254,8 +257,8 @@ async function verifyLayerStructure() {
|
|
|
254
257
|
const requiredPaths = [
|
|
255
258
|
'@prisma/client/runtime',
|
|
256
259
|
'@prisma/client/index.d.ts',
|
|
257
|
-
'
|
|
258
|
-
'
|
|
260
|
+
'generated/prisma-mongodb/schema.prisma',
|
|
261
|
+
'generated/prisma-postgresql/schema.prisma',
|
|
259
262
|
'prisma/build',
|
|
260
263
|
];
|
|
261
264
|
|
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.454.
|
|
4
|
+
"version": "2.0.0--canary.454.d57d533.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-ec2": "^3.835.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.835.0",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@babel/eslint-parser": "^7.18.9",
|
|
12
12
|
"@babel/parser": "^7.25.3",
|
|
13
13
|
"@babel/traverse": "^7.25.3",
|
|
14
|
-
"@friggframework/schemas": "2.0.0--canary.454.
|
|
15
|
-
"@friggframework/test": "2.0.0--canary.454.
|
|
14
|
+
"@friggframework/schemas": "2.0.0--canary.454.d57d533.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.454.d57d533.0",
|
|
16
16
|
"@hapi/boom": "^10.0.1",
|
|
17
17
|
"@inquirer/prompts": "^5.3.8",
|
|
18
18
|
"axios": "^1.7.2",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"serverless-http": "^2.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@friggframework/eslint-config": "2.0.0--canary.454.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.454.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.454.d57d533.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.454.d57d533.0",
|
|
39
39
|
"aws-sdk-client-mock": "^4.1.0",
|
|
40
40
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
41
41
|
"jest": "^30.1.3",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d57d533f4b0408aa33177c61a360d228159251bc"
|
|
74
74
|
}
|