quapp 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +0 -44
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quapp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/server.js CHANGED
@@ -62,40 +62,6 @@ const getIP = (networkType = "local") => {
62
62
  return "localhost";
63
63
  };
64
64
 
65
- // Check if Vite is installed
66
-
67
-
68
- function isViteInstalled() {
69
- const result = spawnSync(
70
- process.platform === "win32" ? "npx.cmd" : "npx",
71
- ["vite", "--version"],
72
- { stdio: "ignore" }
73
- );
74
- return result.status === 0;
75
- }
76
-
77
-
78
-
79
- // Install Vite
80
- const installVite = () => {
81
- return new Promise((resolve, reject) => {
82
- console.log("📦 Installing Vite...");
83
- const install = spawn("npm", ["install", "vite", "-D"], {
84
- stdio: "inherit",
85
- shell: true,
86
- });
87
-
88
- install.on("exit", (code) => {
89
- if (code === 0) {
90
- console.log("✅ Vite installed.");
91
- resolve();
92
- } else {
93
- reject(new Error("Failed to install Vite"));
94
- }
95
- });
96
- });
97
- };
98
-
99
65
  // Start Vite server
100
66
  const startVite = (port, attempt = 0) => {
101
67
  const host = config.server.network === "private" ? getIP("private") : "localhost";
@@ -156,16 +122,6 @@ const startVite = (port, attempt = 0) => {
156
122
  // Main
157
123
  const main = async () => {
158
124
  await loadUserConfig();
159
-
160
- if (!isViteInstalled()) {
161
- try {
162
- await installVite();
163
- } catch (err) {
164
- console.error("❌ Failed to install Vite automatically. Please install it manually.");
165
- process.exit(1);
166
- }
167
- }
168
-
169
125
  startVite(config.server.port);
170
126
  };
171
127