@acmekit/admin-bundler 2.13.50 → 2.13.51
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/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdminOptions } from '@acmekit/types';
|
|
2
2
|
import { IRouter } from 'express';
|
|
3
3
|
|
|
4
|
-
type BundlerOptions = Required<Pick<AdminOptions, "path">> & Pick<AdminOptions, "vite" | "backendUrl" | "frontendUrl" | "storefrontUrl"> & {
|
|
4
|
+
type BundlerOptions = Required<Pick<AdminOptions, "path">> & Pick<AdminOptions, "vite" | "backendUrl" | "frontendUrl" | "storefrontUrl" | "appName"> & {
|
|
5
5
|
outDir: string;
|
|
6
6
|
sources?: string[];
|
|
7
7
|
plugins?: string[];
|
package/dist/index.js
CHANGED
|
@@ -1316,6 +1316,7 @@ async function getViteConfig(options) {
|
|
|
1316
1316
|
const root = import_path.default.resolve(process.cwd(), ".acmekit/client");
|
|
1317
1317
|
const backendUrl = options.backendUrl ?? "";
|
|
1318
1318
|
const frontendUrl = options.frontendUrl ?? options.storefrontUrl ?? "";
|
|
1319
|
+
const appName = options.appName ?? void 0;
|
|
1319
1320
|
const authType = process.env.ADMIN_AUTH_TYPE ?? void 0;
|
|
1320
1321
|
const jwtTokenStorageKey = process.env.ADMIN_JWT_TOKEN_STORAGE_KEY ?? void 0;
|
|
1321
1322
|
const baseConfig = {
|
|
@@ -1344,7 +1345,8 @@ async function getViteConfig(options) {
|
|
|
1344
1345
|
__BACKEND_URL__: JSON.stringify(backendUrl),
|
|
1345
1346
|
__AUTH_TYPE__: JSON.stringify(authType),
|
|
1346
1347
|
__JWT_TOKEN_STORAGE_KEY__: JSON.stringify(jwtTokenStorageKey),
|
|
1347
|
-
__FRONTEND_URL__: JSON.stringify(frontendUrl)
|
|
1348
|
+
__FRONTEND_URL__: JSON.stringify(frontendUrl),
|
|
1349
|
+
__APP_NAME__: JSON.stringify(appName)
|
|
1348
1350
|
},
|
|
1349
1351
|
server: {
|
|
1350
1352
|
fs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acmekit/admin-bundler",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.51",
|
|
4
4
|
"description": "Bundler for the AcmeKit admin dashboard.",
|
|
5
5
|
"author": "Kasper Kristensen <kasper@acmekit.com>",
|
|
6
6
|
"scripts": {
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"package.json"
|
|
19
19
|
],
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@acmekit/types": "2.13.
|
|
21
|
+
"@acmekit/types": "2.13.51"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@acmekit/admin-shared": "2.13.
|
|
25
|
-
"@acmekit/admin-vite-plugin": "2.13.
|
|
26
|
-
"@acmekit/dashboard": "2.13.
|
|
24
|
+
"@acmekit/admin-shared": "2.13.51",
|
|
25
|
+
"@acmekit/admin-vite-plugin": "2.13.51",
|
|
26
|
+
"@acmekit/dashboard": "2.13.51",
|
|
27
27
|
"@vitejs/plugin-react": "^4.2.1",
|
|
28
28
|
"autoprefixer": "^10.4.19",
|
|
29
29
|
"compression": "^1.8.0",
|