@leadcms/sdk 1.2.90-pre → 1.2.91-pre

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.
@@ -357,3 +357,11 @@ async function main() {
357
357
 
358
358
  // Export the main function so it can be imported by other modules
359
359
  export { main as fetchLeadCMSContent }
360
+
361
+ // If this script is run directly (not imported), execute the main function
362
+ if (import.meta.url === `file://${process.argv[1]}`) {
363
+ main().catch((error) => {
364
+ console.error('Error running LeadCMS fetch:', error.message);
365
+ process.exit(1);
366
+ });
367
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leadcms/sdk",
3
- "version": "1.2.90-pre",
3
+ "version": "1.2.91-pre",
4
4
  "description": "Official SDK and CLI tools for LeadCMS - framework-agnostic content management for static site generators",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",