tempest.games 0.1.4 → 0.1.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/CHANGELOG.md +12 -0
- package/app/assets/{index-b27dZE1I.js → index-fj9Tskwa.js} +1 -1
- package/app/index.html +1 -1
- package/bin/backend.bun.js +12 -12
- package/bin/backend.worker.tribunal.bun.js +8 -8
- package/bin/frontend.bun.js +5 -5
- package/bin/setup-db.bun.js +3 -1
- package/package.json +10 -8
package/bin/setup-db.bun.js
CHANGED
|
@@ -9047,8 +9047,10 @@ function createEnv(opts) {
|
|
|
9047
9047
|
}
|
|
9048
9048
|
|
|
9049
9049
|
// src/library/env.ts
|
|
9050
|
+
var BUILDING_WITH_VITE = `__vite_start_time` in globalThis;
|
|
9051
|
+
var HAS_WINDOW = typeof window !== `undefined`;
|
|
9050
9052
|
var env = createEnv({
|
|
9051
|
-
isServer:
|
|
9053
|
+
isServer: !BUILDING_WITH_VITE && !HAS_WINDOW,
|
|
9052
9054
|
server: {
|
|
9053
9055
|
POSTGRES_USER: z.string(),
|
|
9054
9056
|
POSTGRES_PASSWORD: z.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tempest.games",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@t3-oss/env-core": "0.11.1",
|
|
22
22
|
"cron": "3.1.7",
|
|
23
23
|
"drizzle-orm": "0.35.1",
|
|
24
|
-
"openai": "4.
|
|
24
|
+
"openai": "4.68.0",
|
|
25
25
|
"postgres": "3.4.4",
|
|
26
26
|
"react": "18.3.1",
|
|
27
27
|
"react-dom": "18.3.1",
|
|
@@ -49,28 +49,30 @@
|
|
|
49
49
|
"eslint-plugin-react-refresh": "0.4.12",
|
|
50
50
|
"globals": "15.11.0",
|
|
51
51
|
"rimraf": "6.0.1",
|
|
52
|
-
"sass-embedded": "1.80.
|
|
52
|
+
"sass-embedded": "1.80.1",
|
|
53
53
|
"tsx": "4.19.1",
|
|
54
54
|
"typescript": "5.6.3",
|
|
55
|
-
"typescript-eslint": "8.
|
|
55
|
+
"typescript-eslint": "8.10.0",
|
|
56
56
|
"vite": "5.4.9",
|
|
57
57
|
"vite-tsconfig-paths": "5.0.1",
|
|
58
58
|
"vitest": "2.1.3",
|
|
59
59
|
"varmint": "0.3.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
|
-
"dev": "concurrently \"bun:dev:*\"",
|
|
62
|
+
"dev": "bun run env:dev && concurrently \"bun:dev:*\"",
|
|
63
63
|
"dev:vite": "vite --port 3333",
|
|
64
64
|
"dev:backend": "cross-env RUN_WORKERS_FROM_SOURCE=true PORT=4444 bun --hot ./src/backend.bun.ts",
|
|
65
|
-
"build": "rimraf ./bin && concurrently \"bun:build:*\"",
|
|
65
|
+
"build": "bun run env:prod rimraf ./bin && concurrently \"bun:build:*\"",
|
|
66
66
|
"build:vite": "vite build",
|
|
67
67
|
"build:bun": "./build.bun.ts",
|
|
68
68
|
"preview": "nr build && concurrently \"bun:preview:*\"",
|
|
69
69
|
"preview:frontend": "./bin/frontend.bun.js",
|
|
70
70
|
"preview:backend": "./bin/backend.bun.js",
|
|
71
|
-
"env": "[ -f .env ] && echo 'env already present' || cp .env.defaults .env",
|
|
71
|
+
"env:dev": "[ -f .env ] && echo 'env already present' || cp .env.defaults .env.development",
|
|
72
|
+
"env:test": "[ -f .env ] && echo 'env already present' || cp .env.defaults .env.test",
|
|
73
|
+
"env:prod": "[ -f .env ] && echo 'env already present' || echo 'VITE_BACKEND_ORIGIN=https://realtime.tempest.games' >> .env.production",
|
|
72
74
|
"test": "vitest",
|
|
73
|
-
"test:once": "bun run env && vitest run",
|
|
75
|
+
"test:once": "bun run env:test && vitest run",
|
|
74
76
|
"lint:biome": "biome check -- .",
|
|
75
77
|
"lint:eslint": "eslint --flag unstable_ts_config -- .",
|
|
76
78
|
"lint:types": "tsc --noEmit",
|