nextemos 5.0.0 → 5.0.2

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.
@@ -0,0 +1,4 @@
1
+ declare const fs: any;
2
+ declare const path: any;
3
+ declare const projectRoot: string;
4
+ declare const configFolderPath: any;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // createConfigFolder.js
3
+ const fs = require("fs");
4
+ const path = require("path");
5
+ // Projenin ana dizinini bul
6
+ const projectRoot = process.cwd();
7
+ // Config klasörünün yolu
8
+ const configFolderPath = path.join(projectRoot, "nextemos-config.json");
9
+ // Config klasörünü oluştur
10
+ if (!fs.existsSync(configFolderPath)) {
11
+ fs.writeFileSync(configFolderPath, JSON.stringify({
12
+ API_URL: "https://api.proj-e.com",
13
+ USE_API_URL: true,
14
+ CDN_URL: "https://cdn.proj-e.com",
15
+ CDN_PROVIDER: "medianova",
16
+ KEYCLOAK_URL: "https://identity.proj-e.com",
17
+ }));
18
+ console.log("nextemos-config.json dosyası oluşturuldu.");
19
+ }
20
+ else {
21
+ console.log("nextemos-config.json dosyası zaten var.");
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
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 postinstall-config.js"
24
+ "postinstall": "node /dist/postinstall-config.js"
25
25
  },
26
26
  "author": "PROJE-INC",
27
27
  "license": "ISC",