befly-vite 1.5.24 → 1.5.25
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/cli.js +16 -0
- package/package.json +7 -2
package/cli.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dirname, join } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
|
|
4
|
+
const currentDir = dirname(fileURLToPath(import.meta.url));
|
|
5
|
+
const viteBinPath = join(currentDir, "node_modules", "vite", "bin", "vite.js");
|
|
6
|
+
const viteArgs = process.argv.slice(2);
|
|
7
|
+
const bunBinPath = Bun.which("bun") || "bun";
|
|
8
|
+
|
|
9
|
+
const processHandle = Bun.spawn([bunBinPath, viteBinPath, ...viteArgs], {
|
|
10
|
+
stdin: "inherit",
|
|
11
|
+
stdout: "inherit",
|
|
12
|
+
stderr: "inherit"
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const exitCode = await processHandle.exited;
|
|
16
|
+
process.exit(exitCode);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-vite",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.5.25",
|
|
4
|
+
"gitHead": "523163fa281ad94542dda8e88551360c4cb8b200",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Befly Vite 配置预设和插件集合",
|
|
7
7
|
"keywords": [
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"author": "chensuiyi <bimostyle@qq.com>",
|
|
17
17
|
"files": [
|
|
18
|
+
"cli.js",
|
|
18
19
|
"index.browser.js",
|
|
19
20
|
"index.js",
|
|
20
21
|
"package.json",
|
|
21
22
|
"README.md"
|
|
22
23
|
],
|
|
24
|
+
"bin": {
|
|
25
|
+
"befly-vite": "./cli.js"
|
|
26
|
+
},
|
|
23
27
|
"type": "module",
|
|
24
28
|
"exports": {
|
|
25
29
|
".": {
|
|
@@ -37,6 +41,7 @@
|
|
|
37
41
|
"sass": "^1.98.0",
|
|
38
42
|
"unplugin-auto-import": "^21.0.0",
|
|
39
43
|
"unplugin-vue-components": "^31.0.0",
|
|
44
|
+
"vite": "^8.0.1",
|
|
40
45
|
"vite-bundle-analyzer": "^1.3.6",
|
|
41
46
|
"vite-plugin-vue-devtools": "^8.1.0"
|
|
42
47
|
},
|