@absolutejs/absolute 0.19.0-beta.1008 → 0.19.0-beta.1009

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-aVkBtg/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-DGL6B5/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-aVkBtg/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-DGL6B5/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-aVkBtg/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-DGL6B5/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/index.js CHANGED
@@ -35608,6 +35608,36 @@ var getEnv = (key) => {
35608
35608
  }
35609
35609
  return environmentVariable;
35610
35610
  };
35611
+ // src/utils/projectRoot.ts
35612
+ import { existsSync as existsSync41 } from "fs";
35613
+ import { dirname as dirname28, resolve as resolve48 } from "path";
35614
+ var CONFIG_CANDIDATES = [
35615
+ "absolute.config.ts",
35616
+ "absolute.config.js",
35617
+ "absolute.config.mjs",
35618
+ "absolute.config.cjs",
35619
+ "absolute.config.mts",
35620
+ "absolute.config.cts"
35621
+ ];
35622
+ var findProjectRoot = () => {
35623
+ const start = process.cwd();
35624
+ let packageRoot = null;
35625
+ let dir = start;
35626
+ for (;; ) {
35627
+ if (CONFIG_CANDIDATES.some((name) => existsSync41(resolve48(dir, name)))) {
35628
+ return dir;
35629
+ }
35630
+ if (packageRoot === null && existsSync41(resolve48(dir, "package.json"))) {
35631
+ packageRoot = dir;
35632
+ }
35633
+ const parent = dirname28(dir);
35634
+ if (parent === dir) {
35635
+ return packageRoot ?? start;
35636
+ }
35637
+ dir = parent;
35638
+ }
35639
+ };
35640
+ var projectRoot = findProjectRoot();
35611
35641
 
35612
35642
  // src/utils/index.ts
35613
35643
  init_registerClientScript();
@@ -35691,6 +35721,7 @@ export {
35691
35721
  renderIslandResult,
35692
35722
  renderIslandMarkup,
35693
35723
  registerClientScript,
35724
+ projectRoot,
35694
35725
  prepare,
35695
35726
  parseIslandProps,
35696
35727
  pageRouterPlugin,
@@ -35820,5 +35851,5 @@ export {
35820
35851
  ANGULAR_INIT_TIMEOUT_MS
35821
35852
  };
35822
35853
 
35823
- //# debugId=89F176529A19E93064756E2164756E21
35854
+ //# debugId=B5C2BA8F3C10B49764756E2164756E21
35824
35855
  //# sourceMappingURL=index.js.map