@genesislcap/vite-builder 14.192.2 → 14.193.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAc3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;8BAEwB,YAAY;AAAvC,wBAoJE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAc3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;8BAEwB,YAAY;AAAvC,wBAqJE"}
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ const handlebars_1 = require("./handlebars");
32
32
  * This has the added benefit of aligning with the current production app builds.
33
33
  */
34
34
  exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
35
+ var _a;
35
36
  const { config: { app: { rootElement }, env, http, }, dirs: { cwd }, cli: { isDev, isBuild, isAnalyze, options: { open, https }, }, pkg: { description }, resolve: { alias }, } = ctx;
36
37
  const define = (0, build_kit_1.resolveDefineConfig)(env, http, 'vite');
37
38
  const handlebars = yield (0, handlebars_1.getHandlebarsModule)();
@@ -142,7 +143,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
142
143
  port: (0, build_kit_1.getPort)(ctx.pkg),
143
144
  proxy: (0, build_kit_1.createDevProxies)(),
144
145
  https: https ? (0, build_kit_1.getDevCertOptions)() : undefined,
145
- } }));
146
+ }, base: (_a = process.env.PUBLIC_PATH) !== null && _a !== void 0 ? _a : '/' }));
146
147
  yield server.listen();
147
148
  server.printUrls();
148
149
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/vite-builder",
3
3
  "description": "Vite builder",
4
- "version": "14.192.2",
4
+ "version": "14.193.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "dev": "tsc -b ./tsconfig.json -w"
15
15
  },
16
16
  "dependencies": {
17
- "@genesislcap/build-kit": "14.192.2",
17
+ "@genesislcap/build-kit": "14.193.0",
18
18
  "consola": "^3.0.2",
19
19
  "copyfiles": "^2.4.1",
20
20
  "tslib": "^2.3.1",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "13ed924325bd278f45f1ec1437d78ea26542d27c"
36
+ "gitHead": "8ffb9b512f059cfabe6bb8a0e4b58f12b12f7a89"
37
37
  }
package/src/index.ts CHANGED
@@ -177,6 +177,7 @@ export default async (ctx: BuildContext) => {
177
177
  proxy: createDevProxies(),
178
178
  https: https ? getDevCertOptions() : undefined,
179
179
  },
180
+ base: process.env.PUBLIC_PATH ?? '/',
180
181
  });
181
182
  await server.listen();
182
183
  server.printUrls();