@highstate/backend 0.11.6 → 0.12.0

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": "@highstate/backend",
3
- "version": "0.11.6",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -24,6 +24,11 @@ export type ProjectEvaluationResult =
24
24
  }
25
25
 
26
26
  export interface LibraryBackend {
27
+ /**
28
+ * The base path for imports.
29
+ */
30
+ get importPath(): string
31
+
27
32
  /**
28
33
  * Loads the library.
29
34
  */
@@ -63,7 +63,7 @@ type RebuildState = {
63
63
  export class LocalLibraryBackend implements LibraryBackend {
64
64
  private readonly watcher: Watcher
65
65
  private readonly workspacePath: string
66
- private readonly importPath: string
66
+ readonly importPath: string
67
67
  private readonly workspacePatterns: string[]
68
68
 
69
69
  private readonly lock = new BetterLock()
@@ -656,6 +656,7 @@ export class RuntimeOperation {
656
656
  invokedTriggers,
657
657
  secretNames: Object.keys(secrets),
658
658
  stateIdMap: this.context.getInstanceIdToStateIdMap(instance.id),
659
+ importBasePath: this.libraryBackend.importPath,
659
660
  }
660
661
  }
661
662