@genesislcap/vite-builder 14.226.2-alpha-ee50d0d.0 → 14.227.1
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.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/index.ts +2 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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
|
-
}
|
|
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.
|
|
4
|
+
"version": "14.227.1",
|
|
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.
|
|
17
|
+
"@genesislcap/build-kit": "14.227.1",
|
|
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": "
|
|
36
|
+
"gitHead": "b579519af8c01fdcc886a6a59a088f3e65b845a4"
|
|
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();
|