api-core-lib 12.0.29 → 12.0.30
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/bin/cli-launcher.js +14 -0
- package/dist/cli.cjs +0 -1
- package/package.json +3 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// bin/cli-launcher.js
|
|
4
|
+
// هذا الملف هو مجرد مشغّل بسيط بصيغة CommonJS.
|
|
5
|
+
// وظيفته الوحيدة هي تحميل وتشغيل منطق الـ CLI الفعلي من مجلد dist.
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
// استدعاء المنطق الرئيسي للـ CLI الذي تم بناؤه بواسطة tsup
|
|
9
|
+
require('../dist/cli.cjs');
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Failed to start the API Core generator.');
|
|
12
|
+
console.error(error);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
package/dist/cli.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "api-core-lib",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.30",
|
|
4
4
|
"description": "A flexible and powerful API client library for modern web applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"module": "./dist/index.js",
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"bin": {
|
|
29
|
-
"api-core-generate": "./
|
|
29
|
+
"api-core-generate": "./bin/cli-launcher.js"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"typescript": "^5.4.5"
|
|
67
67
|
},
|
|
68
68
|
|
|
69
|
-
"files": ["dist"]
|
|
69
|
+
"files": ["dist" , "bin"]
|
|
70
70
|
}
|