dawit45 commited on
Commit
bce2498
·
verified ·
1 Parent(s): ac6c3ad

Create scripts/setup-vault.js

Browse files
Files changed (1) hide show
  1. scripts/setup-vault.js +28 -0
scripts/setup-vault.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ const dirs = [
5
+ 'src/store',
6
+ 'src/components',
7
+ 'public',
8
+ 'dist'
9
+ ];
10
+
11
+ console.log('--- Abyssinia v15 Repository Initialization ---');
12
+
13
+ dirs.forEach(dir => {
14
+ const fullPath = path.join(__dirname, '..', dir);
15
+ if (!fs.existsSync(fullPath)) {
16
+ fs.mkdirSync(fullPath, { recursive: true });
17
+ console.log(`Verified: ${dir}`);
18
+ }
19
+ });
20
+
21
+ // Logic to prevent nested src/components/src errors
22
+ const nestedPath = path.join(__dirname, '..', 'src/components/src');
23
+ if (fs.existsSync(nestedPath)) {
24
+ console.log('Warning: Detected nested src directory. Correcting pathing...');
25
+ fs.rmSync(nestedPath, { recursive: true, force: true });
26
+ }
27
+
28
+ console.log('System: Architecture validated for build.');