specleap-framework 2.0.3 → 2.0.4
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/bin/specleap +5 -3
- package/package.json +1 -1
package/bin/specleap
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
const { spawn } = require('child_process');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
const
|
|
6
|
+
// Directorio del paquete (donde están todos los archivos)
|
|
7
|
+
const packageDir = path.join(__dirname, '..');
|
|
8
|
+
const setupPath = path.join(packageDir, 'setup.sh');
|
|
8
9
|
|
|
10
|
+
// Ejecutar setup.sh DESDE el directorio del paquete
|
|
9
11
|
const setup = spawn('bash', [setupPath], {
|
|
10
12
|
stdio: 'inherit',
|
|
11
|
-
cwd:
|
|
13
|
+
cwd: packageDir // <-- ESTO ES LO CRÍTICO
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
setup.on('close', (code) => {
|
package/package.json
CHANGED