adminforth 2.56.0-next.7 → 2.57.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.
|
@@ -5,4 +5,5 @@ ADD package.json {{dockerAdditionalManifestFiles}} /code/
|
|
|
5
5
|
RUN {{packageManager}} {{dockerPackageInstallSubcommand}}
|
|
6
6
|
ADD . /code/
|
|
7
7
|
RUN {{packageManagerExec}} adminforth bundle
|
|
8
|
+
RUN {{ packageManager }} run build
|
|
8
9
|
CMD ["sh", "-c", "{{packageManagerRun}} migrate:prod && {{packageManagerRun}} prod"]
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"description": "",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "{{packageManagerEnvDev}} tsx watch index.ts",
|
|
12
|
-
"
|
|
12
|
+
"build": "{{packageManagerEnvProd}} tsup index.ts --format esm --clean",
|
|
13
|
+
"prod": "{{packageManagerEnvProd}} node dist/index.js",
|
|
13
14
|
"start": "{{packageManagerRun}} dev",
|
|
14
15
|
{{#if includePrismaMigrations}}
|
|
15
16
|
"makemigration": "{{packageManagerEnvDev}} npx --yes prisma migrate dev --create-only",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"typescript": "6.0.3",
|
|
34
|
+
"tsup": "^8.5.1",
|
|
33
35
|
"tsx": "4.11.2",
|
|
34
36
|
"@types/express": "^4.17.21",
|
|
35
37
|
"@types/node": "latest"{{#if includePrismaMigrations}},
|
|
@@ -308,9 +308,6 @@ onMounted(() => {
|
|
|
308
308
|
if (column.type === 'json' && currentValues.value) {
|
|
309
309
|
if (column.isArray?.enabled) {
|
|
310
310
|
// if value is null or undefined, we should set it to empty array
|
|
311
|
-
if (column.showIn?.create === false) {
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
311
|
if (!currentValues.value[column.name]) {
|
|
315
312
|
currentValues.value[column.name] = [];
|
|
316
313
|
} else {
|