ownerlens 0.1.6 → 0.1.7-preview.1

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
@@ -8,7 +8,7 @@
8
8
  "access": "public",
9
9
  "provenance": true
10
10
  },
11
- "version": "0.1.6",
11
+ "version": "0.1.7-preview.1",
12
12
  "description": "Azure ownership reporting tool for resolving likely owners of subscriptions and resource groups from snapshot data.",
13
13
  "license": "Apache-2.0",
14
14
  "bin": {
@@ -21,7 +21,7 @@ export type LocalReportRuntimePluginHost = {
21
21
  };
22
22
  };
23
23
 
24
- function createLocalReportRuntime(dataDir: string): LocalReportRuntime {
24
+ export function createLocalReportRuntime(dataDir: string): LocalReportRuntime {
25
25
  return new LocalReportRuntime({ dataDir, databasePath: path.join(dataDir, "runtime.duckdb") });
26
26
  }
27
27
 
package/vite.config.ts CHANGED
@@ -3,12 +3,15 @@ import tailwindcss from "@tailwindcss/vite";
3
3
  import { defineConfig, type Plugin } from "vite";
4
4
 
5
5
  import {
6
+ createLocalReportRuntime,
6
7
  createDefaultLocalReportRuntime,
7
8
  installLocalReportRuntimeRest
8
9
  } from "./src/providers/azure/runtime/localReportRuntimeRest";
9
10
 
10
11
  function localReportRuntimeApi(): Plugin {
11
- const runtime = createDefaultLocalReportRuntime(process.env.OWNERLENS_DATA_DIR ?? process.cwd());
12
+ const runtime = process.env.OWNERLENS_DATA_DIR
13
+ ? createLocalReportRuntime(process.env.OWNERLENS_DATA_DIR)
14
+ : createDefaultLocalReportRuntime(process.cwd());
12
15
 
13
16
  return {
14
17
  name: "ownerlens-local-report-runtime-api",