@geekmidas/cli 0.51.0 → 0.52.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/dist/index.cjs +6 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/docker/templates.ts +5 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"description": "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"openapi-typescript": "^7.4.2",
|
|
50
50
|
"pg": "~8.17.1",
|
|
51
51
|
"prompts": "~2.4.2",
|
|
52
|
-
"@geekmidas/envkit": "~0.7.0",
|
|
53
52
|
"@geekmidas/constructs": "~0.8.0",
|
|
53
|
+
"@geekmidas/envkit": "~0.7.0",
|
|
54
54
|
"@geekmidas/errors": "~0.1.0",
|
|
55
|
-
"@geekmidas/
|
|
56
|
-
"@geekmidas/
|
|
55
|
+
"@geekmidas/schema": "~0.1.0",
|
|
56
|
+
"@geekmidas/logger": "~0.4.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/lodash.kebabcase": "^4.1.9",
|
package/src/docker/templates.ts
CHANGED
|
@@ -292,14 +292,8 @@ WORKDIR /app
|
|
|
292
292
|
# Copy source (deps already installed)
|
|
293
293
|
COPY . .
|
|
294
294
|
|
|
295
|
-
#
|
|
296
|
-
RUN
|
|
297
|
-
ls -la node_modules/.bin/ 2>/dev/null || echo "node_modules/.bin not found" && \
|
|
298
|
-
echo "=== Checking for gkm ===" && \
|
|
299
|
-
which gkm 2>/dev/null || echo "gkm not in PATH" && \
|
|
300
|
-
ls -la node_modules/.bin/gkm 2>/dev/null || echo "gkm binary not found in node_modules/.bin" && \
|
|
301
|
-
echo "=== Running build ===" && \
|
|
302
|
-
./node_modules/.bin/gkm build --provider server --production
|
|
295
|
+
# Build production server using gkm
|
|
296
|
+
RUN pnpm exec gkm build --provider server --production
|
|
303
297
|
|
|
304
298
|
# Stage 3: Production
|
|
305
299
|
FROM ${baseImage} AS runner
|
|
@@ -389,14 +383,8 @@ WORKDIR /app
|
|
|
389
383
|
# Copy pruned source
|
|
390
384
|
COPY --from=pruner /app/out/full/ ./
|
|
391
385
|
|
|
392
|
-
#
|
|
393
|
-
RUN
|
|
394
|
-
ls -la node_modules/.bin/ 2>/dev/null || echo "node_modules/.bin not found" && \
|
|
395
|
-
echo "=== Checking for gkm ===" && \
|
|
396
|
-
which gkm 2>/dev/null || echo "gkm not in PATH" && \
|
|
397
|
-
ls -la node_modules/.bin/gkm 2>/dev/null || echo "gkm binary not found in node_modules/.bin" && \
|
|
398
|
-
echo "=== Running build ===" && \
|
|
399
|
-
./node_modules/.bin/gkm build --provider server --production
|
|
386
|
+
# Build production server using gkm
|
|
387
|
+
RUN pnpm exec gkm build --provider server --production
|
|
400
388
|
|
|
401
389
|
# Stage 4: Production
|
|
402
390
|
FROM ${baseImage} AS runner
|
|
@@ -768,7 +756,7 @@ RUN if [ -n "$GKM_ENCRYPTED_CREDENTIALS" ]; then \
|
|
|
768
756
|
fi
|
|
769
757
|
|
|
770
758
|
# Build production server using gkm
|
|
771
|
-
RUN cd ${appPath} &&
|
|
759
|
+
RUN cd ${appPath} && pnpm exec gkm build --provider server --production
|
|
772
760
|
|
|
773
761
|
# Stage 4: Production
|
|
774
762
|
FROM ${baseImage} AS runner
|