@genesislcap/vite-builder 14.128.0 → 14.129.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.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/package.json +3 -3
- package/src/index.ts +3 -1
- package/tsconfig.json +3 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;8BAEwB,YAAY;AAAvC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;8BAEwB,YAAY;AAAvC,wBA+IE"}
|
package/dist/index.js
CHANGED
|
@@ -33,8 +33,8 @@ const vite_plugin_handlebars_1 = tslib_1.__importDefault(require("vite-plugin-ha
|
|
|
33
33
|
*/
|
|
34
34
|
exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
35
35
|
var _a;
|
|
36
|
-
const { config: { app: { rootElement }, env, http, }, dirs: { cwd }, cli: { isDev, isBuild, isAnalyze, options: { open }, }, pkg: { description }, } = ctx;
|
|
37
|
-
const define = (0, build_kit_1.resolveDefineConfig)(env, http);
|
|
36
|
+
const { config: { app: { rootElement }, env, http, }, dirs: { cwd }, cli: { isDev, isBuild, isAnalyze, options: { open }, }, pkg: { description }, resolve: { alias }, } = ctx;
|
|
37
|
+
const define = (0, build_kit_1.resolveDefineConfig)(env, http, 'vite');
|
|
38
38
|
const config = {
|
|
39
39
|
plugins: [
|
|
40
40
|
(0, vite_plugin_handlebars_1.default)({
|
|
@@ -51,9 +51,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
|
|
|
51
51
|
}),
|
|
52
52
|
],
|
|
53
53
|
resolve: {
|
|
54
|
-
alias: {
|
|
55
|
-
'foundationZero/ZeroDesignSystem': '@genesislcap/foundation-zero',
|
|
56
|
-
},
|
|
54
|
+
alias: Object.assign(Object.assign({}, alias), { 'foundationZero/ZeroDesignSystem': '@genesislcap/foundation-zero' }),
|
|
57
55
|
/**
|
|
58
56
|
* A side effect of using npm linked packages like `@genesislcap/pbc-reporting` in Vite, seems to be that it will
|
|
59
57
|
* allow these to keep their own dependency graph, even though we may specify these as peerDependencies, which
|
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.129.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.
|
|
17
|
+
"@genesislcap/build-kit": "14.129.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": "
|
|
36
|
+
"gitHead": "3c5fc48788499117b7acb540f96adb11bc4f05d3"
|
|
37
37
|
}
|
package/src/index.ts
CHANGED
|
@@ -47,9 +47,10 @@ export default async (ctx: BuildContext) => {
|
|
|
47
47
|
options: { open },
|
|
48
48
|
},
|
|
49
49
|
pkg: { description },
|
|
50
|
+
resolve: { alias },
|
|
50
51
|
} = ctx;
|
|
51
52
|
|
|
52
|
-
const define = resolveDefineConfig(env, http);
|
|
53
|
+
const define = resolveDefineConfig(env, http, 'vite');
|
|
53
54
|
|
|
54
55
|
const config: UserConfig = {
|
|
55
56
|
plugins: [
|
|
@@ -68,6 +69,7 @@ export default async (ctx: BuildContext) => {
|
|
|
68
69
|
],
|
|
69
70
|
resolve: {
|
|
70
71
|
alias: {
|
|
72
|
+
...alias,
|
|
71
73
|
'foundationZero/ZeroDesignSystem': '@genesislcap/foundation-zero',
|
|
72
74
|
},
|
|
73
75
|
/**
|