@genesislcap/vite-builder 14.189.1-alpha-971cf4f.0 → 14.190.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 +1 -1
- package/package.json +5 -5
- package/src/index.ts +6 -6
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
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
|
-
|
|
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.
|
|
4
|
+
"version": "14.190.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.
|
|
17
|
+
"@genesislcap/build-kit": "14.190.0",
|
|
18
18
|
"consola": "^3.0.2",
|
|
19
19
|
"copyfiles": "^2.4.1",
|
|
20
20
|
"tslib": "^2.3.1",
|
|
21
|
-
"vite": "
|
|
22
|
-
"vite-plugin-handlebars": "
|
|
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": "
|
|
36
|
+
"gitHead": "44b901a5dc67bad66ff1df5f1027a1625d07457b"
|
|
37
37
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
|
-
import {
|
|
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 {
|
|
14
|
-
import
|
|
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
|
-
|
|
184
|
+
await build(config);
|
|
185
185
|
} else if (isAnalyze) {
|
|
186
186
|
throw new Error(`vite builder - analyze support not implemented yet`);
|
|
187
187
|
} else {
|