@genesislcap/vite-builder 14.226.2-alpha-ee50d0d.0 → 14.227.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,wBAsJE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAe3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;8BAEwB,YAAY;AAAvC,wBAsJE"}
package/dist/index.js CHANGED
@@ -32,7 +32,6 @@ 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;
36
35
  const { config: { app: { rootElement }, env, http, }, dirs: { cwd }, cli: { isDev, isBuild, isAnalyze, options: { open, https }, }, pkg: { description }, resolve: { alias }, } = ctx;
37
36
  const define = (0, build_kit_1.resolveDefineConfig)(env, http, 'vite');
38
37
  const handlebars = yield (0, handlebars_1.getHandlebarsModule)();
@@ -129,6 +128,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
129
128
  */
130
129
  include: ['@genesis-community/golden-layout'],
131
130
  },
131
+ base: (0, build_kit_1.getPublicPath)(),
132
132
  };
133
133
  if (!(0, node_fs_1.existsSync)((0, node_path_1.resolve)(cwd, 'index.html'))) {
134
134
  consola_1.default.warn('index.html file not found - copying default one.');
@@ -143,7 +143,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
143
143
  port: (0, build_kit_1.getPort)(ctx.pkg),
144
144
  proxy: (0, build_kit_1.createDevProxies)(),
145
145
  https: https ? (0, build_kit_1.getDevCertOptions)() : undefined,
146
- }, base: (_a = process.env.PUBLIC_PATH) !== null && _a !== void 0 ? _a : '/' }));
146
+ } }));
147
147
  yield server.listen();
148
148
  server.printUrls();
149
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.226.2-alpha-ee50d0d.0",
4
+ "version": "14.227.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.226.2-alpha-ee50d0d.0",
17
+ "@genesislcap/build-kit": "14.227.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": "0cf87047a4d98e207401dd144a7ecdaabd54bc9d"
36
+ "gitHead": "6f1749b0cb8e0093efe528bc44a34eeb0697f458"
37
37
  }
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  createDevProxies,
6
6
  getDevCertOptions,
7
7
  getPort,
8
+ getPublicPath,
8
9
  resolveBin,
9
10
  resolveDefineConfig,
10
11
  run,
@@ -158,6 +159,7 @@ export default async (ctx: BuildContext) => {
158
159
  */
159
160
  include: ['@genesis-community/golden-layout'],
160
161
  },
162
+ base: getPublicPath(),
161
163
  };
162
164
 
163
165
  if (!existsSync(resolve(cwd, 'index.html'))) {
@@ -178,7 +180,6 @@ export default async (ctx: BuildContext) => {
178
180
  proxy: createDevProxies(),
179
181
  https: https ? getDevCertOptions() : undefined,
180
182
  },
181
- base: process.env.PUBLIC_PATH ?? '/',
182
183
  });
183
184
  await server.listen();
184
185
  server.printUrls();