@hublo/sentinel 1.2.0-alpha.32 → 1.2.0-alpha.33
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/sentinel.js
CHANGED
|
@@ -5641,13 +5641,15 @@ function rewriteVitestScript(command) {
|
|
|
5641
5641
|
});
|
|
5642
5642
|
}
|
|
5643
5643
|
function testTarget(options) {
|
|
5644
|
-
const { configFiles, outputs } = options;
|
|
5644
|
+
const { configFiles, outputs, dependsOn, configurations } = options;
|
|
5645
5645
|
const cached = outputs !== void 0 && outputs.length > 0;
|
|
5646
5646
|
return {
|
|
5647
5647
|
[TEST_SCRIPT_NAME]: {
|
|
5648
5648
|
cache: cached,
|
|
5649
5649
|
inputs: ["default", "^default", ...configFiles.map((name) => `{projectRoot}/${name}`)],
|
|
5650
|
-
...cached ? { outputs: [...outputs] } : {}
|
|
5650
|
+
...cached ? { outputs: [...outputs] } : {},
|
|
5651
|
+
...dependsOn !== void 0 && dependsOn.length > 0 ? { dependsOn: [...dependsOn] } : {},
|
|
5652
|
+
...configurations !== void 0 && Object.keys(configurations).length > 0 ? { configurations: { ...configurations } } : {}
|
|
5651
5653
|
}
|
|
5652
5654
|
};
|
|
5653
5655
|
}
|
|
@@ -5801,6 +5803,16 @@ function plan3(context) {
|
|
|
5801
5803
|
}
|
|
5802
5804
|
const existing = projectTargets(context.cwd)?.[TEST_SCRIPT_NAME];
|
|
5803
5805
|
const outputs = existing?.outputs ?? [];
|
|
5806
|
+
const dependsOn = existing?.dependsOn ?? [];
|
|
5807
|
+
const configurations = existing?.configurations ?? {};
|
|
5808
|
+
if (dependsOn.length > 0) {
|
|
5809
|
+
notes.push(`carried \`dependsOn\` from the replaced target: ${dependsOn.join(", ")}.`);
|
|
5810
|
+
}
|
|
5811
|
+
if (Object.keys(configurations).length > 0) {
|
|
5812
|
+
notes.push(
|
|
5813
|
+
`carried the \`${Object.keys(configurations).join("`, `")}\` configuration(s): CI invokes \`--configuration=ci\`, and a target that no longer offers it fails the caller, not the module.`
|
|
5814
|
+
);
|
|
5815
|
+
}
|
|
5804
5816
|
if (outputs.length === 0) {
|
|
5805
5817
|
notes.push(
|
|
5806
5818
|
`this target declares no \`outputs\`, so it is left UNCACHED. Caching a run that restores nothing is the defect where nx reports a hit and the coverage directory is empty; if this module writes coverage, declare where and the target can cache.`
|
|
@@ -5826,7 +5838,7 @@ function plan3(context) {
|
|
|
5826
5838
|
operations.push(
|
|
5827
5839
|
...nxTargetOperations({
|
|
5828
5840
|
cwd: context.cwd,
|
|
5829
|
-
targets: testTarget({ configFiles: [configFile], outputs })
|
|
5841
|
+
targets: testTarget({ configFiles: [configFile], outputs, dependsOn, configurations })
|
|
5830
5842
|
})
|
|
5831
5843
|
);
|
|
5832
5844
|
const owned = ownedTestDependencies(context.cwd, adoption.ownDeclarations);
|
|
@@ -7030,4 +7042,4 @@ export {
|
|
|
7030
7042
|
detectFramework,
|
|
7031
7043
|
dispatch
|
|
7032
7044
|
};
|
|
7033
|
-
//# sourceMappingURL=chunk-
|
|
7045
|
+
//# sourceMappingURL=chunk-DJAN2UTQ.js.map
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.33",
|
|
4
4
|
"description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|