@genesislcap/vite-builder 14.128.0 → 14.130.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":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;8BAEwB,YAAY;AAAvC,wBA6IE"}
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.128.0",
4
+ "version": "14.130.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.128.0",
17
+ "@genesislcap/build-kit": "14.130.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": "5fc8cef3a47b0b518e28d67f03b3ac7f4df99b38"
36
+ "gitHead": "71ae81e8e14cdc1564c23459c56db3b53b1f1109"
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
  /**
package/tsconfig.json CHANGED
@@ -11,6 +11,9 @@
11
11
  "module": "commonjs",
12
12
  "outDir": "./dist",
13
13
  "rootDir": "./src",
14
+ "types": [
15
+ "vite/client",
16
+ ]
14
17
  },
15
18
  "include": [
16
19
  "src/**/*"