@genesislcap/vite-builder 14.189.1-alpha-971cf4f.0 → 14.191.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":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;8BAEwB,YAAY;AAAvC,wBAoJE"}
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,wBAoJE"}
package/dist/index.js CHANGED
@@ -147,7 +147,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
147
147
  server.printUrls();
148
148
  }
149
149
  else if (isBuild) {
150
- throw new Error(`vite builder - build support not implemented yet`);
150
+ yield (0, vite_1.build)(config);
151
151
  }
152
152
  else if (isAnalyze) {
153
153
  throw new Error(`vite builder - analyze support not implemented yet`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/vite-builder",
3
3
  "description": "Vite builder",
4
- "version": "14.189.1-alpha-971cf4f.0",
4
+ "version": "14.191.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -14,12 +14,12 @@
14
14
  "dev": "tsc -b ./tsconfig.json -w"
15
15
  },
16
16
  "dependencies": {
17
- "@genesislcap/build-kit": "14.189.1-alpha-971cf4f.0",
17
+ "@genesislcap/build-kit": "14.191.0",
18
18
  "consola": "^3.0.2",
19
19
  "copyfiles": "^2.4.1",
20
20
  "tslib": "^2.3.1",
21
- "vite": "^4.5.2",
22
- "vite-plugin-handlebars": "^2.0.0"
21
+ "vite": "5.3.0",
22
+ "vite-plugin-handlebars": "2.0.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "rimraf": "^5.0.0",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "243b9a9c408c6dd5d7143859dc6492f038c0180d"
36
+ "gitHead": "6cd41bf74649398b357228b168d779a5f86a55c8"
37
37
  }
package/src/index.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  import { existsSync } from 'node:fs';
2
- import { resolve, relative } from 'node:path';
2
+ import { relative, resolve } from 'node:path';
3
+ import type { BuildContext } from '@genesislcap/build-kit';
3
4
  import {
4
5
  createDevProxies,
5
6
  getDevCertOptions,
6
7
  getPort,
7
- run,
8
8
  resolveBin,
9
9
  resolveDefineConfig,
10
+ run,
10
11
  } from '@genesislcap/build-kit';
11
- import type { BuildContext } from '@genesislcap/build-kit';
12
12
  import consola from 'consola';
13
- import { createServer } from 'vite';
14
- import type { UserConfig, Plugin } from 'vite';
13
+ import type { Plugin, UserConfig } from 'vite';
14
+ import { build, createServer } from 'vite';
15
15
  import { getHandlebarsModule } from './handlebars';
16
16
 
17
17
  /**
@@ -181,7 +181,7 @@ export default async (ctx: BuildContext) => {
181
181
  await server.listen();
182
182
  server.printUrls();
183
183
  } else if (isBuild) {
184
- throw new Error(`vite builder - build support not implemented yet`);
184
+ await build(config);
185
185
  } else if (isAnalyze) {
186
186
  throw new Error(`vite builder - analyze support not implemented yet`);
187
187
  } else {