quapp 1.0.2 → 1.0.3

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 +15 -5
  2. package/server.js +4 -1
package/package.json CHANGED
@@ -1,20 +1,30 @@
1
1
  {
2
2
  "name": "quapp",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
7
7
  },
8
8
  "type": "module",
9
- "author": "",
9
+ "author": "Quapp",
10
10
  "bin": {
11
11
  "quapp": "./bin/cli.js"
12
12
  },
13
- "license": "ISC",
14
- "description": "",
13
+ "license": "MIT",
14
+ "description": "A lightweight CLI tool that starts a Vite/Angular development server with LAN-accessible QR code and prepares your app for production with a simple build command.",
15
15
  "dependencies": {
16
16
  "archiver": "^7.0.1",
17
17
  "open": "^10.1.2",
18
18
  "qrcode-terminal": "^0.12.0"
19
- }
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/Quapp-Store/Quapp/tree/main/packages/quapp"
23
+ },
24
+ "files": [
25
+ "README.md",
26
+ "server.js",
27
+ "bin/cli.js",
28
+ "build.js"
29
+ ]
20
30
  }
package/server.js CHANGED
@@ -88,7 +88,10 @@ const startVite = (port, attempt = 0) => {
88
88
  process.exit(1);
89
89
  }
90
90
 
91
- const vite = spawn(viteBinary, viteArgs, { shell: true });
91
+ const vite = spawn("npx", ["vite", ...viteArgs], {
92
+ stdio: "pipe",
93
+ shell: true,
94
+ });
92
95
 
93
96
  vite.stdout.on("data", (data) => process.stdout.write(data));
94
97
  vite.stderr.on("data", (data) => process.stderr.write(data));