@datashow/super-visual-compiler 0.1.0-rc.4 → 0.1.0-rc.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datashow/super-visual-compiler",
3
- "version": "0.1.0-rc.4",
3
+ "version": "0.1.0-rc.6",
4
4
  "description": "Compile governed React applications into inspectable Super Visual solution bundles.",
5
5
  "type": "module",
6
6
  "exports": "./src/index.mjs",
@@ -22,9 +22,10 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@datashow/super-visual-compliance": "0.1.0-rc.4",
26
- "@datashow/super-visual-contracts": "0.1.0-rc.4",
27
- "@datashow/super-visual-semantic": "0.1.0-rc.4",
25
+ "@datashow/super-visual-compliance": "0.1.0-rc.6",
26
+ "@datashow/super-visual-contracts": "0.1.0-rc.6",
27
+ "@datashow/super-visual-runtime-powerbi": "0.1.0-rc.6",
28
+ "@datashow/super-visual-semantic": "0.1.0-rc.6",
28
29
  "fflate": "0.8.3",
29
30
  "yaml": "2.9.1"
30
31
  }
@@ -1,5 +1,6 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { cp, mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
3
+ import { createRequire } from "node:module";
3
4
  import path from "node:path";
4
5
  import { fileURLToPath } from "node:url";
5
6
  import YAML from "yaml";
@@ -9,7 +10,9 @@ import { generateRuntimeManifests, validateCompilation } from "./index.mjs";
9
10
  import { generateReportWrapper } from "./report-wrapper.mjs";
10
11
 
11
12
  const packageRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
12
- const runtimeSource = path.resolve(packageRoot, "../runtime-powerbi/src");
13
+ const require = createRequire(import.meta.url);
14
+ const runtimePackage = require.resolve("@datashow/super-visual-runtime-powerbi/package.json");
15
+ const runtimeSource = path.join(path.dirname(runtimePackage), "src");
13
16
  const visualTemplate = path.join(packageRoot, "template", "visual");
14
17
 
15
18
  async function readStructured(file) {