@orkestrel/scaffold 0.0.9 → 0.0.11

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.
@@ -1746,7 +1746,8 @@ function selectOrkestrelEntries(value) {
1746
1746
  * `app/<environment>/`; a target with no environment on either axis is also a coded
1747
1747
  * `TARGET` failure. The `bin`, `integration`, and `service` facts probe physical
1748
1748
  * directories at `src/bin`, `tests/integration`, and `tests/service`, respectively,
1749
- * never the workspace name. `dependencies` /
1749
+ * while `global` probes the physical exact-case `tests/setupGlobal.ts` file; none is
1750
+ * inferred from the workspace name. `dependencies` /
1750
1751
  * `peers` are the `@orkestrel/`-prefixed entries of `manifest.dependencies` /
1751
1752
  * `manifest.peerDependencies` (a peer flagged `peerDependenciesMeta[name]
1752
1753
  * .optional === true` carries `optional: true`). `extras` is EVERY entry of
@@ -1804,6 +1805,9 @@ function deriveBlueprint(target) {
1804
1805
  const bin = isRealDirectory((0, node_path.join)(target, "src", "bin"));
1805
1806
  const integration = isRealDirectory((0, node_path.join)(target, "tests", "integration"));
1806
1807
  const service = isRealDirectory((0, node_path.join)(target, "tests", "service"));
1808
+ const tests = (0, node_path.join)(target, (0, node_path.dirname)(_src_core.GLOBAL_SETUP_PATH));
1809
+ const entries = (0, _orkestrel_contract.attempt)(() => (0, node_fs.readdirSync)(tests));
1810
+ const global = entries.success && entries.value.includes((0, node_path.basename)(_src_core.GLOBAL_SETUP_PATH)) && isRealFile((0, node_path.join)(target, _src_core.GLOBAL_SETUP_PATH));
1807
1811
  if (service) {
1808
1812
  const missing = [];
1809
1813
  if (!isRealFile((0, node_path.join)(target, "tests", "setupService.ts"))) missing.push("tests/setupService.ts");
@@ -1841,7 +1845,8 @@ function deriveBlueprint(target) {
1841
1845
  extras: [],
1842
1846
  bin,
1843
1847
  integration,
1844
- service
1848
+ service,
1849
+ global
1845
1850
  }))));
1846
1851
  const rawDevDependencies = (0, _src_core.ownDataValue)(parsed, "devDependencies");
1847
1852
  const devDependencies = (0, _orkestrel_contract.isRecord)(rawDevDependencies) ? rawDevDependencies : {};
@@ -1862,7 +1867,8 @@ function deriveBlueprint(target) {
1862
1867
  overrides: [],
1863
1868
  bin,
1864
1869
  integration,
1865
- service
1870
+ service,
1871
+ global
1866
1872
  });
1867
1873
  }
1868
1874
  /**