@tryghost/algolia 0.3.2 → 0.3.3

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/bin/cli.js +1 -1
  2. package/package.json +3 -2
package/bin/cli.js CHANGED
@@ -5,7 +5,6 @@ const fs = require('fs-extra');
5
5
  const utils = require('../lib/utils');
6
6
  const {fetchPosts} = require('../lib/fetch-posts');
7
7
  const GhostContentAPI = require('@tryghost/content-api');
8
- const transforms = require('@tryghost/algolia-fragmenter');
9
8
  const IndexFactory = require('@tryghost/algolia-indexer');
10
9
 
11
10
  prettyCLI.preface('Command line utilities to batch index content from Ghost to Algolia');
@@ -53,6 +52,7 @@ prettyCLI.command({
53
52
  },
54
53
  run: async argv => {
55
54
  const mainTimer = Date.now();
55
+ const transforms = await import('@tryghost/algolia-fragmenter');
56
56
  let context = {errors: [], posts: []};
57
57
 
58
58
  if (argv.verbose) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/algolia",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TryGhost/algolia.git",
@@ -27,12 +27,13 @@
27
27
  "@tryghost/errors": "3.3.8",
28
28
  "@tryghost/pretty-cli": "3.3.8",
29
29
  "fs-extra": "11.4.0",
30
- "@tryghost/algolia-fragmenter": "^0.2.10",
30
+ "@tryghost/algolia-fragmenter": "^0.3.0",
31
31
  "@tryghost/algolia-indexer": "^0.3.4"
32
32
  },
33
33
  "scripts": {
34
34
  "dev": "algolia",
35
35
  "algolia": "algolia",
36
+ "pretest": "pnpm --filter @tryghost/algolia-html-extractor build && pnpm --filter @tryghost/algolia-fragmenter build",
36
37
  "test": "NODE_ENV=testing vitest run --root .",
37
38
  "lint": "oxlint --quiet . && oxfmt --check .",
38
39
  "posttest": "pnpm lint"