@famgia/omnify-laravel 2.0.12 → 2.0.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.
@@ -4844,6 +4844,16 @@ function shouldGenerateAIGuides(rootDir) {
4844
4844
  }
4845
4845
 
4846
4846
  // src/plugin.ts
4847
+ function getPluginVersion() {
4848
+ try {
4849
+ const pkgPath = new URL("../package.json", import.meta.url);
4850
+ const pkgContent = readFileSync2(pkgPath, "utf-8");
4851
+ const pkg = JSON.parse(pkgContent);
4852
+ return pkg.version;
4853
+ } catch {
4854
+ return "unknown";
4855
+ }
4856
+ }
4847
4857
  function extractPackagePaths(schemas) {
4848
4858
  const packageMap = /* @__PURE__ */ new Map();
4849
4859
  for (const schema of Object.values(schemas)) {
@@ -5373,7 +5383,7 @@ function laravelPlugin(options) {
5373
5383
  generators.push(aiGuidesGenerator);
5374
5384
  return {
5375
5385
  name: "@famgia/omnify-laravel",
5376
- version: "0.0.14",
5386
+ version: getPluginVersion(),
5377
5387
  configSchema: LARAVEL_CONFIG_SCHEMA,
5378
5388
  generators
5379
5389
  };
@@ -5413,4 +5423,4 @@ export {
5413
5423
  shouldGenerateAIGuides,
5414
5424
  laravelPlugin
5415
5425
  };
5416
- //# sourceMappingURL=chunk-VAHC2KDH.js.map
5426
+ //# sourceMappingURL=chunk-ILDRIQLW.js.map