nextemos 5.0.2 → 5.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.
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// createConfigFolder.js
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const path = require("path");
|
|
5
|
-
// Projenin ana dizinini bul
|
|
6
|
-
const projectRoot = process.cwd();
|
|
5
|
+
// Projenin ana dizinini bul (npm'in INIT_CWD ortam değişkenini kullan)
|
|
6
|
+
const projectRoot = process.env.INIT_CWD || process.cwd();
|
|
7
7
|
// Config klasörünün yolu
|
|
8
8
|
const configFolderPath = path.join(projectRoot, "nextemos-config.json");
|
|
9
9
|
// Config klasörünü oluştur
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextemos",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "For helpers and hooks used in NextJS projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build": "tsc",
|
|
22
22
|
"preversion": "npm run build",
|
|
23
23
|
"version": "npm publish",
|
|
24
|
-
"postinstall": "node
|
|
24
|
+
"postinstall": "node dist/postinstall-config.js"
|
|
25
25
|
},
|
|
26
26
|
"author": "PROJE-INC",
|
|
27
27
|
"license": "ISC",
|