@promakeai/cli 0.2.12 → 0.2.13

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,15 +2,12 @@
2
2
  "name": "api",
3
3
  "type": "registry:module",
4
4
  "title": "API Client",
5
- "description": "Pre-configured API client using @promakeai/customer-backend-client. Includes multi-language validation messages, automatic token management, and VITE_API_CUSTOMER / VITE_TENANT_UUID environment variable support.",
5
+ "description": "Pre-configured API client using @promakeai/customer-backend-client. Includes multi-language validation messages, automatic token management..",
6
6
  "dependencies": [
7
7
  "@promakeai/customer-backend-client"
8
8
  ],
9
9
  "registryDependencies": [],
10
- "envVars": {
11
- "VITE_API_CUSTOMER": "https://your-tenant.backend.promake.ai/",
12
- "VITE_TENANT_UUID": "your-tenant-uuid"
13
- },
10
+ "envVars": {},
14
11
  "files": [
15
12
  {
16
13
  "path": "api/index.ts",
@@ -22,7 +19,7 @@
22
19
  "path": "api/customer-client.ts",
23
20
  "type": "registry:lib",
24
21
  "target": "$modules$/api/customer-client.ts",
25
- "content": "import {\n createClient,\n type ApiClient,\n} from \"@promakeai/customer-backend-client\";\nimport enValidation from \"./validation/en.json\";\nimport trValidation from \"./validation/tr.json\";\n\nconst customerClient = createClient({\n baseURL:\n import.meta.env.VITE_API_CUSTOMER ||\n `https://${import.meta.env.VITE_TENANT_UUID}.backend.promake.ai/`,\n messages: {\n en: enValidation,\n tr: trValidation,\n },\n defaultLanguage: \"en\",\n});\n\nexport { customerClient };\nexport type { ApiClient };\n"
22
+ "content": "import {\n createClient,\n type ApiClient,\n} from \"@promakeai/customer-backend-client\";\nimport enValidation from \"./validation/en.json\";\nimport trValidation from \"./validation/tr.json\";\n\nconst customerClient = createClient({\n baseURL: `https://${import.meta.env.VITE_TENANT_UUID}.backend.promake.ai/`,\n messages: {\n en: enValidation,\n tr: trValidation,\n },\n defaultLanguage: \"en\",\n});\n\nexport { customerClient };\nexport type { ApiClient };\n"
26
23
  },
27
24
  {
28
25
  "path": "api/get-error-message.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promakeai/cli",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "promake": "dist/index.js"
@@ -35,6 +35,7 @@
35
35
  "chalk": "^5.3.0",
36
36
  "commander": "^12.1.0",
37
37
  "culori": "^4.0.2",
38
+ "dotenv": "^17.2.3",
38
39
  "fs-extra": "^11.2.0",
39
40
  "glob": "^11.0.0",
40
41
  "ora": "^8.1.1",