thecore-auth 0.0.8 → 0.0.10
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 +3 -2
- package/postinstall.js +19 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thecore-auth",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/thecore-auth.cjs.js",
|
|
7
7
|
"module": "dist/thecore-auth.esm.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build": "vite build",
|
|
17
17
|
"lint": "eslint .",
|
|
18
18
|
"preview": "vite preview",
|
|
19
|
-
"postinstall": "node
|
|
19
|
+
"postinstall": "node postinstall.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"axios": "^1.7.9",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"dist",
|
|
51
|
+
"postinstall.js",
|
|
51
52
|
"scripts",
|
|
52
53
|
"README.md"
|
|
53
54
|
],
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { execSync } from "child_process";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import path from "path";
|
|
4
|
+
|
|
5
|
+
// Trova il percorso assoluto della directory corrente
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
|
|
9
|
+
// Percorso corretto dello script
|
|
10
|
+
const scriptPath = path.join(__dirname, "scripts", "check-peer-dependencies.js");
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
console.log("🔄 Eseguendo check-peer-dependencies.js...");
|
|
14
|
+
execSync(`node ${scriptPath}`, { stdio: "inherit" });
|
|
15
|
+
console.log("✅ check-peer-dependencies.js eseguito con successo!");
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error("❌ Errore nell'esecuzione di check-peer-dependencies.js", error);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|