create-craftjs 2.0.5 → 2.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-craftjs",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma — designed for rapid development, simplicity, and scalability.",
5
5
  "bin": {
6
6
  "create-craftjs": "bin/index.js"
@@ -22,21 +22,22 @@ COPY . .
22
22
  # Generate Prisma client
23
23
  RUN npx prisma generate
24
24
 
25
- # Generate key (sesuaikan dengan perintahmu)
25
+ # Generate key
26
26
  RUN node craft key:generate
27
27
 
28
- # Build project (jika ada)
28
+ # Build project
29
29
  RUN node craft build
30
30
 
31
31
 
32
32
  # Build stage untuk copy hasil build
33
33
  FROM base AS build
34
34
 
35
- # Nothing extra, base sudah berisi semua
36
35
 
37
36
  # Production image
38
37
  FROM node:22-slim AS production
39
38
 
39
+ RUN apt-get update && apt-get install -y tzdata openssl
40
+
40
41
  WORKDIR /usr/src/app
41
42
 
42
43
  # Copy package files untuk install production dependencies
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "craftjs",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "craftjs",
9
- "version": "2.0.4",
9
+ "version": "2.0.6",
10
10
  "license": "UNLICENSED",
11
11
  "dependencies": {
12
12
  "@prisma/adapter-mariadb": "^7.2.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "craftjs",
3
3
  "description": "A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma — designed for rapid development, simplicity, and scalability.",
4
- "version": "2.0.5",
4
+ "version": "2.0.6",
5
5
  "keywords": [
6
6
  "express",
7
7
  "typescript",
@@ -35,7 +35,7 @@ web.use(httpLogger);
35
35
 
36
36
  // Swagger Setup
37
37
  if (env.NODE_ENV !== "production") {
38
- setupSwagger(web);
38
+ setupSwagger("/api/docs", web);
39
39
  }
40
40
 
41
41
  // Routes
@@ -133,9 +133,9 @@ const swaggerOptions: swaggerJSDoc.Options = {
133
133
  const swaggerSpec = swaggerJSDoc(swaggerOptions);
134
134
  const theme = new SwaggerTheme();
135
135
  const themeCss = theme.getBuffer("dark-monokai" as any);
136
- export function setupSwagger(app: Express) {
136
+ export function setupSwagger(pathUrl: string, app: Express) {
137
137
  app.use(
138
- "/api/docs",
138
+ pathUrl,
139
139
  swaggerUi.serve,
140
140
  swaggerUi.setup(swaggerSpec, {
141
141
  customCss: themeCss,