astro-relatinator 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/integration.ts +7 -0
  2. package/package.json +1 -1
package/integration.ts CHANGED
@@ -68,6 +68,13 @@ const relatinatorIntegration = ({
68
68
  }
69
69
  });
70
70
  },
71
+ "astro:build:setup": async ({ logger }) => {
72
+ logger.info("relatinator build:setup");
73
+
74
+ logger.info("Training TF-IDF on existing data...");
75
+ await trainModel(paths);
76
+ logger.info("Training done.");
77
+ }
71
78
  },
72
79
  };
73
80
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-relatinator",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Find related content in your Astro website or app",
5
5
  "author": "Darko Bozhinovski <dbozhinovski@gmail.com>",
6
6
  "license": "MIT",