adminforth 2.2.0-next.6 → 2.2.0-next.7
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/commands/scripts.js +4 -0
- package/package.json +1 -1
package/commands/scripts.js
CHANGED
|
@@ -4,8 +4,12 @@ import path from 'path';
|
|
|
4
4
|
import { execSync } from 'child_process';
|
|
5
5
|
const spaPath = path.join(import.meta.dirname, 'dist', 'spa');
|
|
6
6
|
|
|
7
|
+
|
|
7
8
|
if (fs.existsSync(spaPath)){
|
|
8
9
|
console.log('Installing SPA dependencies...');
|
|
9
10
|
execSync('npm ci', { cwd: spaPath, stdio: 'inherit' });
|
|
10
11
|
console.log('Installed spa dependencies');
|
|
12
|
+
} else {
|
|
13
|
+
console.log('SPA dependencies not found');
|
|
14
|
+
console.log('current directory', import.meta.dirname);
|
|
11
15
|
}
|