@iamoberlin/chorus 1.3.8 → 1.3.9
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.
- package/index.ts +8 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -37,8 +37,14 @@ import {
|
|
|
37
37
|
} from "./src/purpose-research.js";
|
|
38
38
|
import * as prayers from "./src/prayers/prayers.js";
|
|
39
39
|
import * as prayerStore from "./src/prayers/store.js";
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
import { readFileSync } from "fs";
|
|
41
|
+
import { fileURLToPath } from "url";
|
|
42
|
+
import { dirname, join } from "path";
|
|
43
|
+
|
|
44
|
+
// Read version from package.json to prevent drift
|
|
45
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
46
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf-8"));
|
|
47
|
+
const VERSION = pkg.version;
|
|
42
48
|
|
|
43
49
|
const plugin = {
|
|
44
50
|
id: "chorus",
|
package/package.json
CHANGED