@genesislcap/vite-builder 14.217.0 → 14.217.1-alpha-bbbd2b3.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,wBAqJE"}
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,wBAqJE"}
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.217.0",
4
+ "version": "14.217.1-alpha-bbbd2b3.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.217.0",
17
+ "@genesislcap/build-kit": "14.217.1-alpha-bbbd2b3.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": "3d119baa8d1ec42f681d17de1f605a98b1a9a464"
36
+ "gitHead": "11665b997cc85fbfba6db6f8995df8c7b06a2776"
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,
@@ -157,6 +158,7 @@ export default async (ctx: BuildContext) => {
157
158
  */
158
159
  include: ['@genesis-community/golden-layout'],
159
160
  },
161
+ base: getPublicPath(),
160
162
  };
161
163
 
162
164
  if (!existsSync(resolve(cwd, 'index.html'))) {
@@ -177,7 +179,6 @@ export default async (ctx: BuildContext) => {
177
179
  proxy: createDevProxies(),
178
180
  https: https ? getDevCertOptions() : undefined,
179
181
  },
180
- base: process.env.PUBLIC_PATH ?? '/',
181
182
  });
182
183
  await server.listen();
183
184
  server.printUrls();