@magicpages/ghost-typesense-cli 1.3.2 → 1.3.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/dist/index.js +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3,12 +3,15 @@
3
3
  // src/index.ts
4
4
  import { Command } from "commander";
5
5
  import { readFileSync } from "fs";
6
- import { resolve } from "path";
6
+ import { resolve, dirname } from "path";
7
+ import { fileURLToPath } from "url";
7
8
  import chalk from "chalk";
8
9
  import ora from "ora";
9
10
  import { validateConfig } from "@magicpages/ghost-typesense-config";
10
11
  import { GhostTypesenseManager } from "@magicpages/ghost-typesense-core";
11
12
  var program = new Command();
13
+ var __filename = fileURLToPath(import.meta.url);
14
+ var __dirname = dirname(__filename);
12
15
  var { version } = JSON.parse(
13
16
  readFileSync(resolve(__dirname, "../package.json"), "utf-8")
14
17
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicpages/ghost-typesense-cli",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "CLI tool for managing Ghost content in Typesense",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "typecheck": "tsc --noEmit"
20
20
  },
21
21
  "dependencies": {
22
- "@magicpages/ghost-typesense-config": "^1.3.1",
22
+ "@magicpages/ghost-typesense-config": "^1.3.2",
23
23
  "@magicpages/ghost-typesense-core": "^1.3.1",
24
24
  "chalk": "^5.3.0",
25
25
  "commander": "^12.0.0",