vaultfs 1.0.4 → 1.0.6

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.
@@ -98,7 +98,7 @@ try {
98
98
  // ─── Build frontend ────────────────────────────────────────
99
99
  info("Installing frontend dependencies...");
100
100
  const frontendDir = path.join(installDir, "frontend");
101
- execSync(`${npmCmd} install --prefer-offline`, {
101
+ execSync(`${npmCmd} install`, {
102
102
  cwd: frontendDir,
103
103
  stdio: "inherit",
104
104
  shell: true
@@ -106,8 +106,7 @@ try {
106
106
  success("Dependencies installed");
107
107
 
108
108
  info("Building React app...");
109
- const viteBin = path.join(frontendDir, "node_modules", ".bin", "vite");
110
- execSync(`"${viteBin}" build`, {
109
+ execSync(`${npmCmd} run build`, {
111
110
  cwd: frontendDir,
112
111
  stdio: "inherit",
113
112
  shell: true
@@ -45,9 +45,8 @@ if (cmd === "update") {
45
45
 
46
46
  // Rebuild frontend
47
47
  const frontendDir = path.join(installDir, "frontend");
48
- execSync(`${npmCmd} install --prefer-offline`, { cwd: frontendDir, stdio: "inherit", shell: true });
49
- const viteBin = path.join(frontendDir, "node_modules", ".bin", "vite");
50
- execSync(`"${viteBin}" build`, { cwd: frontendDir, stdio: "inherit", shell: true });
48
+ execSync(`${npmCmd} install`, { cwd: frontendDir, stdio: "inherit", shell: true });
49
+ execSync(`${npmCmd} run build`, { cwd: frontendDir, stdio: "inherit", shell: true });
51
50
 
52
51
  // Recompile Java
53
52
  execSync("javac -d out src/models/*.java src/datastructures/*.java src/utils/*.java src/auth/*.java src/sync/*.java src/filesystem/*.java src/Main.java", {
@@ -12,17 +12,17 @@
12
12
  "dependencies": {
13
13
  "firebase": "^12.11.0",
14
14
  "react": "^19.2.4",
15
- "react-dom": "^19.2.4"
15
+ "react-dom": "^19.2.4",
16
+ "vite": "^8.0.1",
17
+ "@vitejs/plugin-react": "^6.0.1"
16
18
  },
17
19
  "devDependencies": {
18
20
  "@eslint/js": "^9.39.4",
19
21
  "@types/react": "^19.2.14",
20
22
  "@types/react-dom": "^19.2.3",
21
- "@vitejs/plugin-react": "^6.0.1",
22
23
  "eslint": "^9.39.4",
23
24
  "eslint-plugin-react-hooks": "^7.0.1",
24
25
  "eslint-plugin-react-refresh": "^0.5.2",
25
- "globals": "^17.4.0",
26
- "vite": "^8.0.1"
26
+ "globals": "^17.4.0"
27
27
  }
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vaultfs",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A CLI-based secure file system simulator with OAuth 2.0 authentication and advanced data structures",
5
5
  "bin": {
6
6
  "vaultfs": "bin/vaultfs-npm.js"
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.6