thecore-auth 0.0.22 → 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 -1
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
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
10
|
// Percorso corretto dello script
|
|
10
|
-
const scriptPath = path.join(__dirname, "check-peer-dependencies.js");
|
|
11
|
+
const scriptPath = path.join(__dirname, "scripts", "check-peer-dependencies.js");
|
|
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
|
+
}
|
|
11
19
|
|
|
12
20
|
try {
|
|
13
21
|
console.log("📌 Eseguendo check-peer-dependencies.js...");
|
|
@@ -17,3 +25,4 @@ try {
|
|
|
17
25
|
console.error("❌ Errore nell'esecuzione di check-peer-dependencies.js", error);
|
|
18
26
|
process.exit(1);
|
|
19
27
|
}
|
|
28
|
+
|