@ecoma-io/archkeep 0.13.0 → 0.15.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/README.md +9 -3
- package/cli.mjs +599 -55
- package/commands.mjs +51 -0
- package/package.json +3 -1
- package/src/analysis/typescript.mjs +2 -1
- package/src/commands/README.md +70 -1
- package/src/commands/change-intent.mjs +461 -0
- package/src/commands/change.mjs +612 -0
- package/src/commands/check.mjs +84 -17
- package/src/commands/context.mjs +92 -16
- package/src/commands/coverage-acceptance.mjs +113 -0
- package/src/commands/custom-rules.mjs +286 -2
- package/src/commands/delta-classify.mjs +664 -0
- package/src/commands/delta-snapshot.mjs +672 -0
- package/src/commands/delta.mjs +606 -0
- package/src/commands/diff.mjs +41 -13
- package/src/commands/evolution.mjs +473 -0
- package/src/commands/explain.mjs +39 -0
- package/src/commands/history.mjs +130 -103
- package/src/commands/policy.mjs +93 -1
- package/src/commands/trajectory.mjs +437 -0
- package/src/commands/waivers.mjs +53 -3
- package/src/config.mjs +129 -11
- package/src/lsp/boundary-config.mjs +9 -4
- package/src/path-util.mjs +40 -0
- package/src/providers/native/model.mjs +17 -0
- package/src/report/change-text.mjs +148 -0
- package/src/report/delta-text.mjs +264 -0
- package/src/report/evolution-text.mjs +83 -0
- package/src/report/explain-text.mjs +27 -0
- package/src/report/history-text.mjs +4 -114
- package/src/report/sarif.mjs +280 -0
- package/src/report/snapshot-text.mjs +123 -0
- package/src/report/text.mjs +36 -0
- package/src/report/trajectory-text.mjs +143 -0
- package/src/report/waivers-text.mjs +35 -2
- package/src/tsconfig-paths.mjs +3 -2
package/src/tsconfig-paths.mjs
CHANGED
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
* says (`tsconfigPathsFacts` there).
|
|
78
78
|
*/
|
|
79
79
|
import { posix } from "node:path";
|
|
80
|
+
import { stripTrailingSlashes } from "./path-util.mjs";
|
|
80
81
|
|
|
81
82
|
/**
|
|
82
83
|
* What a hygiene finding means — one entry per `messageId`, the arrangement
|
|
@@ -116,7 +117,7 @@ function probeDirectory(target, base, root) {
|
|
|
116
117
|
// candidates live in its parent.
|
|
117
118
|
const dir =
|
|
118
119
|
prefix === "" || prefix.endsWith("/")
|
|
119
|
-
? joined
|
|
120
|
+
? stripTrailingSlashes(joined) || "/"
|
|
120
121
|
: posix.dirname(joined);
|
|
121
122
|
if (dir === root) return "";
|
|
122
123
|
return dir.startsWith(`${root}/`) ? dir.slice(root.length + 1) : null;
|
|
@@ -144,7 +145,7 @@ function probeDirectory(target, base, root) {
|
|
|
144
145
|
* verdict; `malformed` is for `../cli.mjs` to refuse loudly, never to skip.
|
|
145
146
|
*/
|
|
146
147
|
export function judgeTsconfigPaths({ paths, base, workspaceRoot, tsConfig, directoryExists }) {
|
|
147
|
-
const root = workspaceRoot
|
|
148
|
+
const root = stripTrailingSlashes(workspaceRoot);
|
|
148
149
|
const findings = [];
|
|
149
150
|
const malformed = [];
|
|
150
151
|
let aliases = 0;
|