tempest.games 0.1.7 → 0.1.8
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/CHANGELOG.md +8 -0
- package/app/assets/{index-CTvfPidG.css → index-DNL4wMCJ.css} +1 -1
- package/app/assets/{index-C-zrj5Nu.js → index-LkEgqeUK.js} +8 -8
- package/app/index.html +2 -2
- package/bin/backend.bun.js +13 -13
- package/bin/backend.worker.tribunal.bun.js +8 -8
- package/bin/frontend.bun.js +6 -6
- package/bin/setup-db.bun.js +118 -68
- package/package.json +21 -20
package/bin/setup-db.bun.js
CHANGED
|
@@ -1950,11 +1950,11 @@ function osUsername() {
|
|
|
1950
1950
|
try {
|
|
1951
1951
|
return os.userInfo().username;
|
|
1952
1952
|
} catch (_) {
|
|
1953
|
-
return process.env.USERNAME ||
|
|
1953
|
+
return process.env.USERNAME || "runner";
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
1957
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/entity.js
|
|
1958
1958
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
1959
1959
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
1960
1960
|
function is(value, type) {
|
|
@@ -1979,7 +1979,7 @@ function is(value, type) {
|
|
|
1979
1979
|
return false;
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
1982
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/logger.js
|
|
1983
1983
|
class ConsoleLogWriter {
|
|
1984
1984
|
static [entityKind] = "ConsoleLogWriter";
|
|
1985
1985
|
write(message) {
|
|
@@ -2012,7 +2012,7 @@ class NoopLogger {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2015
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/query-promise.js
|
|
2016
2016
|
class QueryPromise {
|
|
2017
2017
|
static [entityKind] = "QueryPromise";
|
|
2018
2018
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -2033,10 +2033,10 @@ class QueryPromise {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
|
|
2036
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2036
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/table.utils.js
|
|
2037
2037
|
var TableName = Symbol.for("drizzle:Name");
|
|
2038
2038
|
|
|
2039
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2039
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/table.js
|
|
2040
2040
|
var Schema = Symbol.for("drizzle:Schema");
|
|
2041
2041
|
var Columns = Symbol.for("drizzle:Columns");
|
|
2042
2042
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -2080,15 +2080,15 @@ function getTableUniqueName(table) {
|
|
|
2080
2080
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
2081
2081
|
}
|
|
2082
2082
|
|
|
2083
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2083
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/tracing-utils.js
|
|
2084
2084
|
function iife(fn, ...args) {
|
|
2085
2085
|
return fn(...args);
|
|
2086
2086
|
}
|
|
2087
2087
|
|
|
2088
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2089
|
-
var version = "0.35.
|
|
2088
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/version.js
|
|
2089
|
+
var version = "0.35.3";
|
|
2090
2090
|
|
|
2091
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2091
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/tracing.js
|
|
2092
2092
|
var otel;
|
|
2093
2093
|
var rawTracer;
|
|
2094
2094
|
var tracer = {
|
|
@@ -2115,7 +2115,7 @@ var tracer = {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
};
|
|
2117
2117
|
|
|
2118
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2118
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/column.js
|
|
2119
2119
|
class Column {
|
|
2120
2120
|
constructor(table, config) {
|
|
2121
2121
|
this.table = table;
|
|
@@ -2165,12 +2165,12 @@ class Column {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
2167
|
|
|
2168
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2168
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
2169
2169
|
function uniqueKeyName(table, columns) {
|
|
2170
2170
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2173
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
2174
2174
|
class PgColumn extends Column {
|
|
2175
2175
|
constructor(table, config) {
|
|
2176
2176
|
if (!config.uniqueName) {
|
|
@@ -2219,7 +2219,7 @@ class ExtraConfigColumn extends PgColumn {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
2221
|
|
|
2222
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2222
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
2223
2223
|
var isPgEnumSym = Symbol.for("drizzle:isPgEnum");
|
|
2224
2224
|
function isPgEnum(obj) {
|
|
2225
2225
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
@@ -2237,7 +2237,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2240
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/subquery.js
|
|
2241
2241
|
class Subquery {
|
|
2242
2242
|
static [entityKind] = "Subquery";
|
|
2243
2243
|
constructor(sql, selection, alias, isWith = false) {
|
|
@@ -2255,10 +2255,10 @@ class WithSubquery extends Subquery {
|
|
|
2255
2255
|
static [entityKind] = "WithSubquery";
|
|
2256
2256
|
}
|
|
2257
2257
|
|
|
2258
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2258
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/view-common.js
|
|
2259
2259
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
2260
2260
|
|
|
2261
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2261
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/sql/sql.js
|
|
2262
2262
|
function isSQLWrapper(value) {
|
|
2263
2263
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
2264
2264
|
}
|
|
@@ -2625,7 +2625,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
2625
2625
|
return new SQL([this]);
|
|
2626
2626
|
};
|
|
2627
2627
|
|
|
2628
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2628
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/utils.js
|
|
2629
2629
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
2630
2630
|
const nullifyMap = {};
|
|
2631
2631
|
const result = columns.reduce((result2, { path, field }, columnIndex) => {
|
|
@@ -2725,8 +2725,52 @@ function getTableColumns(table) {
|
|
|
2725
2725
|
function getTableLikeName(table) {
|
|
2726
2726
|
return is(table, Subquery) ? table._.alias : is(table, View) ? table[ViewBaseConfig].name : is(table, SQL) ? undefined : table[Table.Symbol.IsAlias] ? table[Table.Symbol.Name] : table[Table.Symbol.BaseName];
|
|
2727
2727
|
}
|
|
2728
|
+
function isConfig(data) {
|
|
2729
|
+
if (typeof data !== "object" || data === null)
|
|
2730
|
+
return false;
|
|
2731
|
+
if (data.constructor.name !== "Object")
|
|
2732
|
+
return false;
|
|
2733
|
+
if ("logger" in data) {
|
|
2734
|
+
const type = typeof data["logger"];
|
|
2735
|
+
if (type !== "boolean" && (type !== "object" || typeof data["logger"]["logQuery"] !== "function") && type !== "undefined")
|
|
2736
|
+
return false;
|
|
2737
|
+
return true;
|
|
2738
|
+
}
|
|
2739
|
+
if ("schema" in data) {
|
|
2740
|
+
const type = typeof data["logger"];
|
|
2741
|
+
if (type !== "object" && type !== "undefined")
|
|
2742
|
+
return false;
|
|
2743
|
+
return true;
|
|
2744
|
+
}
|
|
2745
|
+
if ("casing" in data) {
|
|
2746
|
+
const type = typeof data["logger"];
|
|
2747
|
+
if (type !== "string" && type !== "undefined")
|
|
2748
|
+
return false;
|
|
2749
|
+
return true;
|
|
2750
|
+
}
|
|
2751
|
+
if ("mode" in data) {
|
|
2752
|
+
if (data["mode"] !== "default" || data["mode"] !== "planetscale" || data["mode"] !== undefined)
|
|
2753
|
+
return false;
|
|
2754
|
+
return true;
|
|
2755
|
+
}
|
|
2756
|
+
if ("connection" in data) {
|
|
2757
|
+
const type = typeof data["connection"];
|
|
2758
|
+
if (type !== "string" && type !== "object" && type !== "undefined")
|
|
2759
|
+
return false;
|
|
2760
|
+
return true;
|
|
2761
|
+
}
|
|
2762
|
+
if ("client" in data) {
|
|
2763
|
+
const type = typeof data["client"];
|
|
2764
|
+
if (type !== "object" && type !== "undefined")
|
|
2765
|
+
return false;
|
|
2766
|
+
return true;
|
|
2767
|
+
}
|
|
2768
|
+
if (Object.keys(data).length === 0)
|
|
2769
|
+
return true;
|
|
2770
|
+
return false;
|
|
2771
|
+
}
|
|
2728
2772
|
|
|
2729
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2773
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
2730
2774
|
class PgDeleteBase extends QueryPromise {
|
|
2731
2775
|
constructor(table, session, dialect, withList) {
|
|
2732
2776
|
super();
|
|
@@ -2769,7 +2813,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
2769
2813
|
}
|
|
2770
2814
|
}
|
|
2771
2815
|
|
|
2772
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2816
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
2773
2817
|
class PgInsertBuilder {
|
|
2774
2818
|
constructor(table, session, dialect, withList) {
|
|
2775
2819
|
this.table = table;
|
|
@@ -2858,7 +2902,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
2858
2902
|
}
|
|
2859
2903
|
}
|
|
2860
2904
|
|
|
2861
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2905
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/alias.js
|
|
2862
2906
|
class ColumnAliasProxyHandler {
|
|
2863
2907
|
constructor(table) {
|
|
2864
2908
|
this.table = table;
|
|
@@ -2937,7 +2981,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
2937
2981
|
}));
|
|
2938
2982
|
}
|
|
2939
2983
|
|
|
2940
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
2984
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/casing.js
|
|
2941
2985
|
function toSnakeCase(input) {
|
|
2942
2986
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
2943
2987
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -2990,7 +3034,7 @@ class CasingCache {
|
|
|
2990
3034
|
}
|
|
2991
3035
|
}
|
|
2992
3036
|
|
|
2993
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3037
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/errors.js
|
|
2994
3038
|
class DrizzleError extends Error {
|
|
2995
3039
|
static [entityKind] = "DrizzleError";
|
|
2996
3040
|
constructor({ message, cause }) {
|
|
@@ -3007,7 +3051,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
3007
3051
|
}
|
|
3008
3052
|
}
|
|
3009
3053
|
|
|
3010
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3054
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
3011
3055
|
class PgDate extends PgColumn {
|
|
3012
3056
|
static [entityKind] = "PgDate";
|
|
3013
3057
|
getSQLType() {
|
|
@@ -3027,7 +3071,7 @@ class PgDateString extends PgColumn {
|
|
|
3027
3071
|
}
|
|
3028
3072
|
}
|
|
3029
3073
|
|
|
3030
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3074
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
3031
3075
|
class PgJson extends PgColumn {
|
|
3032
3076
|
static [entityKind] = "PgJson";
|
|
3033
3077
|
constructor(table, config) {
|
|
@@ -3051,7 +3095,7 @@ class PgJson extends PgColumn {
|
|
|
3051
3095
|
}
|
|
3052
3096
|
}
|
|
3053
3097
|
|
|
3054
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3098
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
3055
3099
|
class PgJsonb extends PgColumn {
|
|
3056
3100
|
static [entityKind] = "PgJsonb";
|
|
3057
3101
|
constructor(table, config) {
|
|
@@ -3075,7 +3119,7 @@ class PgJsonb extends PgColumn {
|
|
|
3075
3119
|
}
|
|
3076
3120
|
}
|
|
3077
3121
|
|
|
3078
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3122
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
3079
3123
|
class PgNumeric extends PgColumn {
|
|
3080
3124
|
static [entityKind] = "PgNumeric";
|
|
3081
3125
|
precision;
|
|
@@ -3096,7 +3140,7 @@ class PgNumeric extends PgColumn {
|
|
|
3096
3140
|
}
|
|
3097
3141
|
}
|
|
3098
3142
|
|
|
3099
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3143
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
3100
3144
|
class PgTime extends PgColumn {
|
|
3101
3145
|
static [entityKind] = "PgTime";
|
|
3102
3146
|
withTimezone;
|
|
@@ -3112,7 +3156,7 @@ class PgTime extends PgColumn {
|
|
|
3112
3156
|
}
|
|
3113
3157
|
}
|
|
3114
3158
|
|
|
3115
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3159
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
3116
3160
|
class PgTimestamp extends PgColumn {
|
|
3117
3161
|
static [entityKind] = "PgTimestamp";
|
|
3118
3162
|
withTimezone;
|
|
@@ -3148,7 +3192,7 @@ class PgTimestampString extends PgColumn {
|
|
|
3148
3192
|
}
|
|
3149
3193
|
}
|
|
3150
3194
|
|
|
3151
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3195
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
3152
3196
|
class PgUUID extends PgColumn {
|
|
3153
3197
|
static [entityKind] = "PgUUID";
|
|
3154
3198
|
getSQLType() {
|
|
@@ -3156,7 +3200,7 @@ class PgUUID extends PgColumn {
|
|
|
3156
3200
|
}
|
|
3157
3201
|
}
|
|
3158
3202
|
|
|
3159
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3203
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/table.js
|
|
3160
3204
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
3161
3205
|
|
|
3162
3206
|
class PgTable extends Table {
|
|
@@ -3168,7 +3212,7 @@ class PgTable extends Table {
|
|
|
3168
3212
|
[Table.Symbol.ExtraConfigBuilder] = undefined;
|
|
3169
3213
|
}
|
|
3170
3214
|
|
|
3171
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3215
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
3172
3216
|
class PrimaryKeyBuilder {
|
|
3173
3217
|
static [entityKind] = "PgPrimaryKeyBuilder";
|
|
3174
3218
|
columns;
|
|
@@ -3196,7 +3240,7 @@ class PrimaryKey {
|
|
|
3196
3240
|
}
|
|
3197
3241
|
}
|
|
3198
3242
|
|
|
3199
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3243
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
3200
3244
|
function bindIfParam(value, column) {
|
|
3201
3245
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
3202
3246
|
return new Param(value, column);
|
|
@@ -3301,7 +3345,7 @@ function notIlike(column, value) {
|
|
|
3301
3345
|
return sql`${column} not ilike ${value}`;
|
|
3302
3346
|
}
|
|
3303
3347
|
|
|
3304
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3348
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/sql/expressions/select.js
|
|
3305
3349
|
function asc(column) {
|
|
3306
3350
|
return sql`${column} asc`;
|
|
3307
3351
|
}
|
|
@@ -3309,7 +3353,7 @@ function desc(column) {
|
|
|
3309
3353
|
return sql`${column} desc`;
|
|
3310
3354
|
}
|
|
3311
3355
|
|
|
3312
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3356
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/relations.js
|
|
3313
3357
|
class Relation {
|
|
3314
3358
|
constructor(sourceTable, referencedTable, relationName) {
|
|
3315
3359
|
this.sourceTable = sourceTable;
|
|
@@ -3529,12 +3573,12 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
3529
3573
|
return result;
|
|
3530
3574
|
}
|
|
3531
3575
|
|
|
3532
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3576
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/view-base.js
|
|
3533
3577
|
class PgViewBase extends View {
|
|
3534
3578
|
static [entityKind] = "PgViewBase";
|
|
3535
3579
|
}
|
|
3536
3580
|
|
|
3537
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
3581
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/dialect.js
|
|
3538
3582
|
class PgDialect {
|
|
3539
3583
|
static [entityKind] = "PgDialect";
|
|
3540
3584
|
casing;
|
|
@@ -4067,7 +4111,7 @@ class PgDialect {
|
|
|
4067
4111
|
}
|
|
4068
4112
|
}
|
|
4069
4113
|
|
|
4070
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4114
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/selection-proxy.js
|
|
4071
4115
|
class SelectionProxyHandler {
|
|
4072
4116
|
static [entityKind] = "SelectionProxyHandler";
|
|
4073
4117
|
config;
|
|
@@ -4119,7 +4163,7 @@ class SelectionProxyHandler {
|
|
|
4119
4163
|
}
|
|
4120
4164
|
}
|
|
4121
4165
|
|
|
4122
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4166
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
4123
4167
|
class TypedQueryBuilder {
|
|
4124
4168
|
static [entityKind] = "TypedQueryBuilder";
|
|
4125
4169
|
getSelectedFields() {
|
|
@@ -4127,7 +4171,7 @@ class TypedQueryBuilder {
|
|
|
4127
4171
|
}
|
|
4128
4172
|
}
|
|
4129
4173
|
|
|
4130
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4174
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
4131
4175
|
class PgSelectBuilder {
|
|
4132
4176
|
static [entityKind] = "PgSelectBuilder";
|
|
4133
4177
|
fields;
|
|
@@ -4405,7 +4449,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
4405
4449
|
var except = createSetOperator("except", false);
|
|
4406
4450
|
var exceptAll = createSetOperator("except", true);
|
|
4407
4451
|
|
|
4408
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4452
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
4409
4453
|
class QueryBuilder {
|
|
4410
4454
|
static [entityKind] = "PgQueryBuilder";
|
|
4411
4455
|
dialect;
|
|
@@ -4484,7 +4528,7 @@ class QueryBuilder {
|
|
|
4484
4528
|
}
|
|
4485
4529
|
}
|
|
4486
4530
|
|
|
4487
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4531
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
4488
4532
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
4489
4533
|
constructor(view, session, dialect) {
|
|
4490
4534
|
super();
|
|
@@ -4530,7 +4574,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
4530
4574
|
};
|
|
4531
4575
|
}
|
|
4532
4576
|
|
|
4533
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4577
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
4534
4578
|
class PgUpdateBuilder {
|
|
4535
4579
|
constructor(table, session, dialect, withList) {
|
|
4536
4580
|
this.table = table;
|
|
@@ -4582,7 +4626,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
4582
4626
|
}
|
|
4583
4627
|
}
|
|
4584
4628
|
|
|
4585
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4629
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
4586
4630
|
class PgCountBuilder extends SQL {
|
|
4587
4631
|
constructor(params) {
|
|
4588
4632
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -4618,7 +4662,7 @@ class PgCountBuilder extends SQL {
|
|
|
4618
4662
|
}
|
|
4619
4663
|
}
|
|
4620
4664
|
|
|
4621
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4665
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
4622
4666
|
class RelationalQueryBuilder {
|
|
4623
4667
|
constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
|
|
4624
4668
|
this.fullSchema = fullSchema;
|
|
@@ -4696,7 +4740,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
4696
4740
|
}
|
|
4697
4741
|
}
|
|
4698
4742
|
|
|
4699
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4743
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
4700
4744
|
class PgRaw extends QueryPromise {
|
|
4701
4745
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
4702
4746
|
super();
|
|
@@ -4723,7 +4767,7 @@ class PgRaw extends QueryPromise {
|
|
|
4723
4767
|
}
|
|
4724
4768
|
}
|
|
4725
4769
|
|
|
4726
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4770
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/db.js
|
|
4727
4771
|
class PgDatabase {
|
|
4728
4772
|
constructor(dialect, session, schema) {
|
|
4729
4773
|
this.dialect = dialect;
|
|
@@ -4847,7 +4891,7 @@ class PgDatabase {
|
|
|
4847
4891
|
}
|
|
4848
4892
|
}
|
|
4849
4893
|
|
|
4850
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4894
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/pg-core/session.js
|
|
4851
4895
|
class PgPreparedQuery {
|
|
4852
4896
|
constructor(query) {
|
|
4853
4897
|
this.query = query;
|
|
@@ -4912,7 +4956,7 @@ class PgTransaction extends PgDatabase {
|
|
|
4912
4956
|
}
|
|
4913
4957
|
}
|
|
4914
4958
|
|
|
4915
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
4959
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/postgres-js/session.js
|
|
4916
4960
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
4917
4961
|
constructor(client, queryString, params, logger, fields, _isResponseInArrayMode, customResultMapper) {
|
|
4918
4962
|
super({ sql: queryString, params });
|
|
@@ -5020,7 +5064,7 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
5020
5064
|
}
|
|
5021
5065
|
}
|
|
5022
5066
|
|
|
5023
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
5067
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/postgres-js/driver.js
|
|
5024
5068
|
class PostgresJsDatabase extends PgDatabase {
|
|
5025
5069
|
static [entityKind] = "PostgresJsDatabase";
|
|
5026
5070
|
}
|
|
@@ -5054,23 +5098,23 @@ function construct(client, config = {}) {
|
|
|
5054
5098
|
return db;
|
|
5055
5099
|
}
|
|
5056
5100
|
function drizzle(...params) {
|
|
5057
|
-
if (typeof params[0] === "
|
|
5058
|
-
|
|
5101
|
+
if (typeof params[0] === "string") {
|
|
5102
|
+
const instance = src_default(params[0]);
|
|
5103
|
+
return construct(instance, params[1]);
|
|
5059
5104
|
}
|
|
5060
|
-
if (
|
|
5105
|
+
if (isConfig(params[0])) {
|
|
5061
5106
|
const { connection: connection2, client, ...drizzleConfig } = params[0];
|
|
5062
5107
|
if (client)
|
|
5063
5108
|
return construct(client, drizzleConfig);
|
|
5064
5109
|
if (typeof connection2 === "object" && connection2.url !== undefined) {
|
|
5065
5110
|
const { url, ...config } = connection2;
|
|
5066
|
-
const
|
|
5067
|
-
return construct(
|
|
5111
|
+
const instance2 = src_default(url, config);
|
|
5112
|
+
return construct(instance2, drizzleConfig);
|
|
5068
5113
|
}
|
|
5069
|
-
const
|
|
5070
|
-
return construct(
|
|
5114
|
+
const instance = src_default(connection2);
|
|
5115
|
+
return construct(instance, drizzleConfig);
|
|
5071
5116
|
}
|
|
5072
|
-
|
|
5073
|
-
return construct(instance, params[1]);
|
|
5117
|
+
return construct(params[0], params[1]);
|
|
5074
5118
|
}
|
|
5075
5119
|
((drizzle2) => {
|
|
5076
5120
|
function mock(config) {
|
|
@@ -5079,7 +5123,7 @@ function drizzle(...params) {
|
|
|
5079
5123
|
drizzle2.mock = mock;
|
|
5080
5124
|
})(drizzle || (drizzle = {}));
|
|
5081
5125
|
|
|
5082
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.35.
|
|
5126
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.35.3_@libsql+client-wasm@0.14.0_@types+react@18.3.11_bun-types@1.1.32_postgres@3.4.4_react@18.3.1/node_modules/drizzle-orm/migrator.js
|
|
5083
5127
|
import crypto2 from "crypto";
|
|
5084
5128
|
import fs2 from "fs";
|
|
5085
5129
|
function readMigrationFiles(config) {
|
|
@@ -9063,24 +9107,30 @@ var env = createEnv({
|
|
|
9063
9107
|
},
|
|
9064
9108
|
clientPrefix: `VITE_`,
|
|
9065
9109
|
client: {
|
|
9066
|
-
VITE_BACKEND_ORIGIN: z.string()
|
|
9110
|
+
VITE_BACKEND_ORIGIN: z.string(),
|
|
9111
|
+
VITE_USE_SELF_SIGNED_CERTIFICATE: z.union([z.literal(`true`), z.literal(`false`)]).optional().transform((s) => s === `true`)
|
|
9067
9112
|
},
|
|
9068
9113
|
runtimeEnv: import.meta.env,
|
|
9069
9114
|
emptyStringAsUndefined: true
|
|
9070
9115
|
});
|
|
9071
9116
|
|
|
9072
9117
|
// __scripts__/setup-db.bun.ts
|
|
9118
|
+
console.log({
|
|
9119
|
+
env
|
|
9120
|
+
});
|
|
9073
9121
|
var osUser = os2.userInfo().username;
|
|
9074
|
-
var user = osUser === `
|
|
9075
|
-
var
|
|
9122
|
+
var user = osUser === `runner` ? `postgres` : osUser;
|
|
9123
|
+
var postgresSetupCredentials = {
|
|
9076
9124
|
user,
|
|
9077
9125
|
password: env.POSTGRES_PASSWORD,
|
|
9078
9126
|
database: `postgres`,
|
|
9079
9127
|
host: env.POSTGRES_HOST,
|
|
9080
9128
|
port: env.POSTGRES_PORT
|
|
9081
|
-
}
|
|
9129
|
+
};
|
|
9130
|
+
console.log({ postgresSetupCredentials });
|
|
9131
|
+
var sql2 = src_default(postgresSetupCredentials);
|
|
9082
9132
|
try {
|
|
9083
|
-
|
|
9133
|
+
console.log(`\uD83D\uDE80 Creating database ${env.POSTGRES_DATABASE}... `);
|
|
9084
9134
|
await sql2`CREATE DATABASE ${sql2(env.POSTGRES_DATABASE)}`;
|
|
9085
9135
|
console.log(`Done!`);
|
|
9086
9136
|
} catch (thrown) {
|
|
@@ -9089,7 +9139,7 @@ try {
|
|
|
9089
9139
|
}
|
|
9090
9140
|
}
|
|
9091
9141
|
try {
|
|
9092
|
-
|
|
9142
|
+
console.log(`\uD83D\uDE80 Creating user ${env.POSTGRES_USER}... `);
|
|
9093
9143
|
await sql2.unsafe(`CREATE USER ${env.POSTGRES_USER} WITH PASSWORD '${env.POSTGRES_PASSWORD}'`);
|
|
9094
9144
|
console.log(`Done!`);
|
|
9095
9145
|
} catch (thrown) {
|
|
@@ -9098,7 +9148,7 @@ try {
|
|
|
9098
9148
|
}
|
|
9099
9149
|
}
|
|
9100
9150
|
try {
|
|
9101
|
-
|
|
9151
|
+
console.log(`\uD83D\uDE80 Granting privileges to ${env.POSTGRES_USER} on ${env.POSTGRES_DATABASE}... `);
|
|
9102
9152
|
await sql2`GRANT ALL PRIVILEGES ON DATABASE ${sql2(env.POSTGRES_DATABASE)} TO ${sql2(env.POSTGRES_USER)}`;
|
|
9103
9153
|
console.log(`Done!`);
|
|
9104
9154
|
} catch (thrown) {
|
|
@@ -9115,7 +9165,7 @@ var tempest = src_default({
|
|
|
9115
9165
|
port: env.POSTGRES_PORT
|
|
9116
9166
|
});
|
|
9117
9167
|
try {
|
|
9118
|
-
|
|
9168
|
+
console.log(`\uD83D\uDE80 Migrating database ${env.POSTGRES_DATABASE}... `);
|
|
9119
9169
|
const db = drizzle(tempest);
|
|
9120
9170
|
await migrate(db, {
|
|
9121
9171
|
migrationsFolder: resolve(import.meta.dir, `../drizzle`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tempest.games",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@t3-oss/env-core": "0.11.1",
|
|
22
22
|
"cron": "3.1.7",
|
|
23
|
-
"drizzle-orm": "0.35.
|
|
24
|
-
"openai": "4.68.
|
|
23
|
+
"drizzle-orm": "0.35.3",
|
|
24
|
+
"openai": "4.68.1",
|
|
25
25
|
"postgres": "3.4.4",
|
|
26
26
|
"react": "18.3.1",
|
|
27
27
|
"react-dom": "18.3.1",
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
"zod": "3.23.8",
|
|
32
32
|
"zod-to-json-schema": "3.23.3",
|
|
33
33
|
"atom.io": "0.30.0",
|
|
34
|
-
"treetrunks": "0.0.
|
|
34
|
+
"treetrunks": "0.0.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@eslint/js": "9.
|
|
38
|
-
"@types/node": "22.7.
|
|
37
|
+
"@eslint/js": "9.13.0",
|
|
38
|
+
"@types/node": "22.7.8",
|
|
39
39
|
"@types/react": "18.3.11",
|
|
40
40
|
"@types/react-dom": "18.3.1",
|
|
41
41
|
"@vitejs/plugin-react-swc": "3.7.1",
|
|
42
|
-
"bun-types": "1.1.
|
|
42
|
+
"bun-types": "1.1.32",
|
|
43
43
|
"concurrently": "9.0.1",
|
|
44
44
|
"cross-env": "7.0.3",
|
|
45
45
|
"dotenv": "16.4.5",
|
|
46
46
|
"dotenv-cli": "7.4.2",
|
|
47
47
|
"drizzle-kit": "0.26.2",
|
|
48
|
-
"eslint": "9.
|
|
49
|
-
"eslint-plugin-react-refresh": "0.4.
|
|
48
|
+
"eslint": "9.13.0",
|
|
49
|
+
"eslint-plugin-react-refresh": "0.4.13",
|
|
50
50
|
"globals": "15.11.0",
|
|
51
51
|
"rimraf": "6.0.1",
|
|
52
|
-
"sass-embedded": "1.80.
|
|
52
|
+
"sass-embedded": "1.80.3",
|
|
53
53
|
"tsx": "4.19.1",
|
|
54
54
|
"typescript": "5.6.3",
|
|
55
55
|
"typescript-eslint": "8.10.0",
|
|
@@ -61,17 +61,18 @@
|
|
|
61
61
|
"scripts": {
|
|
62
62
|
"dev": "bun run env:dev && concurrently \"bun:dev:*\"",
|
|
63
63
|
"dev:vite": "vite --port 3333",
|
|
64
|
-
"dev:backend": "
|
|
65
|
-
"build": "bun run env:
|
|
66
|
-
"build:vite": "vite build",
|
|
64
|
+
"dev:backend": "bun --hot --env-file=.env.development ./src/backend.bun.ts",
|
|
65
|
+
"build": "rimraf ./bin && ([ $PREVIEW ] && bun run env:pre || bun run env:prod) && concurrently \"bun:build:*\"",
|
|
67
66
|
"build:bun": "./build.bun.ts",
|
|
68
|
-
"
|
|
69
|
-
"preview
|
|
70
|
-
"preview:
|
|
71
|
-
"
|
|
72
|
-
"env:
|
|
73
|
-
"env:
|
|
74
|
-
"test": "
|
|
67
|
+
"build:vite": "[ $PREVIEW ] && vite build --mode preview || vite build --mode production",
|
|
68
|
+
"preview": "cross-env PREVIEW=true nr build && concurrently \"bun:preview:*\"",
|
|
69
|
+
"preview:frontend": "bun --env-file=.env.preview bin/frontend.bun.js",
|
|
70
|
+
"preview:backend": "bun --env-file=.env.preview bin/backend.bun.js",
|
|
71
|
+
"env:dev": "[ -f .env.development ] && echo '.env.development already present' || cp .env.defaults .env.development",
|
|
72
|
+
"env:pre": "[ -f .env.preview ] && echo '.env.preview already present' || cp .env.defaults .env.preview",
|
|
73
|
+
"env:test": "[ -f .env.test ] && echo '.env.test already present' || cp .env.defaults .env.test",
|
|
74
|
+
"env:prod": "[ -f .env.production ] && echo '.env.production already present' || echo 'VITE_BACKEND_ORIGIN=https://realtime.tempest.games' >> .env.production",
|
|
75
|
+
"test": "bun run env:test && vitest",
|
|
75
76
|
"test:once": "bun run env:test && vitest run",
|
|
76
77
|
"lint:biome": "biome check -- .",
|
|
77
78
|
"lint:eslint": "eslint --flag unstable_ts_config -- .",
|