@stoker-platform/web-app 0.5.8 → 0.5.10
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 +14 -0
- package/bin/build.js +4 -3
- package/package.json +2 -2
- package/vite.config.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: improve Windows support
|
|
8
|
+
|
|
9
|
+
## 0.5.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix: improve Windows support
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @stoker-platform/node-client@0.5.8
|
|
16
|
+
|
|
3
17
|
## 0.5.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/bin/build.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --no-warnings
|
|
2
2
|
|
|
3
3
|
import { runChildProcess, tryPromise } from "@stoker-platform/node-client"
|
|
4
|
-
import { fileURLToPath } from "url"
|
|
4
|
+
import { fileURLToPath, pathToFileURL } from "url"
|
|
5
5
|
import { dirname, join } from "path"
|
|
6
6
|
import { cpSync, existsSync, rmSync, readFileSync, writeFileSync, readdirSync, statSync } from "fs"
|
|
7
7
|
import { readFile, writeFile } from "fs/promises"
|
|
8
|
-
import dotenv from "dotenv"
|
|
9
8
|
|
|
10
9
|
try {
|
|
11
10
|
const __filename = fileURLToPath(import.meta.url)
|
|
@@ -402,7 +401,9 @@ try {
|
|
|
402
401
|
cpSync(join(process.cwd(), "icons", "logo-large.png"), join(__dirname, "..", "src", "assets", "logo-large.png"))
|
|
403
402
|
await runChildProcess("npm", ["run", "generate-pwa-assets"], join(__dirname, ".."))
|
|
404
403
|
|
|
405
|
-
const
|
|
404
|
+
const path = join(process.cwd(), "lib", "main.js")
|
|
405
|
+
const url = pathToFileURL(path).href
|
|
406
|
+
const globalConfigModule = await import(url)
|
|
406
407
|
const globalConfig = globalConfigModule.default("node")
|
|
407
408
|
const appName = await tryPromise(globalConfig.appName)
|
|
408
409
|
const description = await tryPromise(globalConfig.admin?.meta?.description)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/web-app",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
52
|
"@react-google-maps/api": "^2.20.8",
|
|
53
53
|
"@sentry/react": "^10.32.1",
|
|
54
|
-
"@stoker-platform/node-client": "0.5.
|
|
54
|
+
"@stoker-platform/node-client": "0.5.8",
|
|
55
55
|
"@stoker-platform/utils": "0.5.5",
|
|
56
56
|
"@stoker-platform/web-client": "0.5.5",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
package/vite.config.ts
CHANGED
|
@@ -2,12 +2,15 @@ import { defineConfig } from "vite"
|
|
|
2
2
|
import react from "@vitejs/plugin-react"
|
|
3
3
|
import eslint from "vite-plugin-eslint"
|
|
4
4
|
import { join, resolve } from "node:path"
|
|
5
|
+
import { pathToFileURL } from "node:url"
|
|
5
6
|
import { VitePWA } from "vite-plugin-pwa"
|
|
6
7
|
import { tryPromise } from "@stoker-platform/node-client"
|
|
7
8
|
import { watch } from "fs"
|
|
8
9
|
|
|
9
10
|
export default defineConfig(async () => {
|
|
10
|
-
const
|
|
11
|
+
const path = join(process.cwd(), "src", "assets", "system-custom", "main.js")
|
|
12
|
+
const url = pathToFileURL(path).href
|
|
13
|
+
const globalConfigModule = await import(url)
|
|
11
14
|
const globalConfig = globalConfigModule.default("node")
|
|
12
15
|
const appName = await tryPromise(globalConfig.appName)
|
|
13
16
|
const description = await tryPromise(globalConfig.admin?.meta?.description)
|