@orkestrel/scaffold 0.0.10 → 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.
- package/dist/bin/scaffold.js +47 -21
- package/dist/bin/scaffold.js.map +1 -1
- package/dist/host/guides/src/scaffold.md +64 -29
- package/dist/host/tests/setupPolicy.ts +87 -2
- package/dist/src/core/index.cjs +78 -54
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +51 -21
- package/dist/src/core/index.d.ts +51 -21
- package/dist/src/core/index.js +77 -55
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +9 -3
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +2 -1
- package/dist/src/server/index.d.ts +2 -1
- package/dist/src/server/index.js +11 -5
- package/dist/src/server/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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
|
/**
|