thecore-auth 0.0.23 → 0.0.24
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/package.json +1 -1
- package/postinstall.js +10 -2
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { execSync } from "child_process";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
|
+
import fs from "fs";
|
|
4
5
|
|
|
5
6
|
// Trova il percorso assoluto della directory corrente
|
|
6
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
8
|
const __dirname = path.dirname(__filename);
|
|
8
9
|
|
|
9
|
-
// Percorso corretto dello script
|
|
10
|
+
// Percorso corretto dello script
|
|
10
11
|
const scriptPath = path.join(__dirname, "scripts", "check-peer-dependencies.js");
|
|
11
12
|
|
|
13
|
+
console.log("📂 Percorso calcolato:", scriptPath);
|
|
14
|
+
|
|
15
|
+
if (!fs.existsSync(scriptPath)) {
|
|
16
|
+
console.error("❌ ERRORE: Il file check-peer-dependencies.js non esiste!");
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
try {
|
|
13
21
|
console.log("📌 Eseguendo check-peer-dependencies.js...");
|
|
14
|
-
console.log("📂 Percorso dello script:", scriptPath); // Debug
|
|
15
22
|
execSync(`node ${scriptPath}`, { stdio: "inherit" });
|
|
16
23
|
console.log("✅ check-peer-dependencies.js eseguito con successo!");
|
|
17
24
|
} catch (error) {
|
|
18
25
|
console.error("❌ Errore nell'esecuzione di check-peer-dependencies.js", error);
|
|
19
26
|
process.exit(1);
|
|
20
27
|
}
|
|
28
|
+
|