@md-code/follow-architecture 0.3.2 → 0.3.3
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/CHANGELOG.md +17 -0
- package/README.md +43 -12
- package/dist/closure-project.js +7 -17
- package/dist/code-entities/entities.js +7 -17
- package/dist/code-entities/project.js +7 -17
- package/dist/code-entities/walk.js +7 -17
- package/dist/config-project.js +7 -17
- package/dist/config-report.js +7 -17
- package/dist/config-rule.js +7 -17
- package/dist/config-state.js +7 -17
- package/dist/css/index.js +7 -17
- package/dist/css/syntax/css/index.js +7 -17
- package/dist/css/syntax/language.js +7 -17
- package/dist/css/syntax/scss/index.js +7 -17
- package/dist/css/syntax/styled/document.js +7 -17
- package/dist/entities/ast/depth.js +7 -17
- package/dist/entities/ast/index.d.ts +2 -2
- package/dist/entities/ast/resolve.js +7 -17
- package/dist/entities/kinds.js +7 -17
- package/dist/entities/location/where.d.ts +2 -2
- package/dist/entities/location/where.js +7 -17
- package/dist/entities/queries.js +7 -17
- package/dist/entities/tree/build.js +7 -17
- package/dist/entities/tree/entries.d.ts +1 -1
- package/dist/entities/tree/match.js +7 -17
- package/dist/fa-open.js +7 -17
- package/dist/fa-store.js +7 -17
- package/dist/facts-record.js +7 -17
- package/dist/frameworks/index.js +7 -17
- package/dist/ignore.js +12 -26
- package/dist/index-zone.js +7 -17
- package/dist/main.js +10 -19
- package/dist/nodes/children.js +7 -17
- package/dist/nodes/finally/emit.d.ts +1 -1
- package/dist/nodes/similar.js +7 -17
- package/dist/pipeline-facts.d.ts +1 -1
- package/dist/pipeline-facts.js +7 -17
- package/dist/pipeline.d.ts +1 -1
- package/dist/report/errorTypes/decision-maker.js +7 -17
- package/dist/report/errorTypes/index.js +7 -17
- package/dist/report/user-report/build/bundle.js +7 -17
- package/dist/report/user-report/build/bundle.prebuilt.js +152 -152
- package/dist/report/user-report/data/collect.js +7 -17
- package/dist/report/user-report/data/entity-examples.js +7 -17
- package/dist/report/user-report/data/nodes.js +7 -17
- package/dist/report/user-report/data/scan.js +7 -17
- package/dist/report/user-report/index.js +7 -17
- package/dist/rules/index.d.ts +1 -1
- package/dist/rules/normalize.js +7 -17
- package/dist/scripts/audit-report.js +7 -17
- package/dist/usage-index.js +7 -17
- package/dist/usage-sweep.js +7 -17
- package/dist/utils/aliases.js +7 -17
- package/dist/utils/configs.js +7 -17
- package/dist/utils/files.js +7 -17
- package/dist/utils/imports.js +7 -17
- package/dist/utils/packages.js +7 -17
- package/dist/utils/pattern.js +9 -19
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to `@md-code/follow-architecture` are documented here.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.3] - 2026-11-29
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- The scan scope is no longer someone else's repository. `IGNORE_PATHS` shipped one
|
|
13
|
+
monorepo's list — `apps/**`, `packages/{api,native,cli,infrastructure,stylelint}/**`,
|
|
14
|
+
`scripts/**` and every `**/*.js`, `**/*.cjs`, `**/*.mjs` — so a consumer whose `apps/`,
|
|
15
|
+
`scripts/` or build output happened to carry those names had those files skipped by the
|
|
16
|
+
CLI and by the rule without ever asking for it. It is now empty: the tool ships the
|
|
17
|
+
universal `IGNORE_DIRS` (dependencies, generated output, tool folders) only, and a
|
|
18
|
+
repository states its own scope once — the rule's `ignores` option and the CLI's
|
|
19
|
+
`--ignore` flags, both ADDED to the defaults.
|
|
20
|
+
- README: new "Scan scope" section (defaults vs. a repository's own scope), the `ignores`
|
|
21
|
+
option's default corrected to `[]`, and the per-repository example.
|
|
22
|
+
- `@md-code/sections` 0.0.3: the report's graph opens at 100% with the content centred
|
|
23
|
+
(an empty leading column no longer inflates the canvas).
|
|
24
|
+
|
|
8
25
|
## [0.3.2] - 2026-11-29
|
|
9
26
|
|
|
10
27
|
### Added
|
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ follow-architecture [--config <path>] [--cwd <dir>] [--ext <.ext>]... [--ignore
|
|
|
134
134
|
There is no `--roots`: the scan starts at the repo root (or `--cwd`); `--ignore`,
|
|
135
135
|
`--ignore-dir` and `--ext` narrow what is walked, and `--files` narrows what is
|
|
136
136
|
checked. A flag that takes a value consumes the next argument; `--overview` alone
|
|
137
|
-
takes none. The scan scope is the
|
|
137
|
+
takes none. The scan scope is never the YAML's — see [Scan scope](#scan-scope).
|
|
138
138
|
|
|
139
139
|
### Exit codes
|
|
140
140
|
|
|
@@ -174,6 +174,36 @@ when the same directory is reachable under a symlinked spelling.
|
|
|
174
174
|
ESLint rule reads through its `config` option, and which file was loaded is visible
|
|
175
175
|
in the report and in every finding.
|
|
176
176
|
|
|
177
|
+
### Scan scope
|
|
178
|
+
|
|
179
|
+
The tool ships the scope every repository shares, and nothing else:
|
|
180
|
+
|
|
181
|
+
| What | Where it comes from |
|
|
182
|
+
| --- | --- |
|
|
183
|
+
| Folders never entered — `node_modules`, `.git`, `.github` (generated output such as `dist` or `coverage` is the repository's own scope, see below) | `IGNORE_DIRS` in `ignore.ts`, the tool's own list |
|
|
184
|
+
| Repo-relative paths not read (`IGNORE_PATHS` in `ignore.ts`) | **empty** — the apps, the tooling scripts and every JS file are a repository's decision, not the tool's |
|
|
185
|
+
|
|
186
|
+
`IGNORE_PATHS` used to carry the scope of this package's own monorepo (the apps,
|
|
187
|
+
the deployable platform packages, `scripts/**`, `**/*.js`). A published tool that
|
|
188
|
+
ships that list hides an `apps/` folder, a `scripts/` folder and every `.js` file in
|
|
189
|
+
every consumer that happens to use the same names — code nobody asked it to skip.
|
|
190
|
+
It is empty now: a repository states its own scope once, in its ESLint config, and
|
|
191
|
+
both callers read it — the rule's `ignores` option and the CLI's `--ignore` flags.
|
|
192
|
+
Both ADD to the defaults, so the tool's universals still apply.
|
|
193
|
+
|
|
194
|
+
This repository (md-starter) keeps its list in one file and reads it twice:
|
|
195
|
+
|
|
196
|
+
```sh
|
|
197
|
+
# The scope the products pass hands to the rule AND the flags this prints come
|
|
198
|
+
# from the same constant: `REPOSITORY_IGNORE` in the repository's ESLint config package (`@md-code/config/eslint/scope.js`).
|
|
199
|
+
node scripts/fa-ignore.mjs # --ignore apps/** --ignore packages/api/** …
|
|
200
|
+
pnpm architecture # the CLI run, with exactly those flags
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
A consumer with no CLI run of its own states the same list in `ignores` in its
|
|
204
|
+
ESLint config; a consumer with both does what md-starter does. There is never a
|
|
205
|
+
second copy to drift: one list, two callers.
|
|
206
|
+
|
|
177
207
|
## `architecture.yaml`
|
|
178
208
|
|
|
179
209
|
Four keys, nothing else:
|
|
@@ -1252,8 +1282,8 @@ underlines, on the line the violation starts at.
|
|
|
1252
1282
|
| `exts` | `string[]` | the built-in list | Source extensions, added to `.ts`, `.tsx`, `.js`, `.jsx`, `.mts`, `.cts`, `.vue`, `.svelte` |
|
|
1253
1283
|
| `similarity` | `number` | `0.6` | Threshold for the "similar file" facts |
|
|
1254
1284
|
| `barrelDepth` | `integer ≥ 1` | `8` | How many barrels a name may pass through before the name stays on the module |
|
|
1255
|
-
| `ignoreDirs` | `string[]` | the tool's list | Folder names not entered, added to `node_modules`, `.git`, `
|
|
1256
|
-
| `ignores` | `string[]` |
|
|
1285
|
+
| `ignoreDirs` | `string[]` | the tool's list | Folder names not entered, added to `node_modules`, `.git`, `.github` |
|
|
1286
|
+
| `ignores` | `string[]` | `[]` | Repo-relative file globs skipped — the repository's own scope, added to the (empty) default |
|
|
1257
1287
|
| `exportPath` | `string \| false` | `reports/architecture-overview.html` | Where the rule writes its HTML overview; `false` turns it off |
|
|
1258
1288
|
| `indexPath` | `string \| false` | `.turbo/md-code/file-index.jsonl` | The shared file index; `false` turns the index gate off |
|
|
1259
1289
|
| `usage` | `"checker" \| "index"` | `checker` | Who answers `references` |
|
|
@@ -1266,15 +1296,16 @@ directory), which is the only value that is right both in an editor that starts
|
|
|
1266
1296
|
ESLint server in a package directory and in a root-level CLI run. The schema rejects
|
|
1267
1297
|
unknown option keys.
|
|
1268
1298
|
|
|
1269
|
-
**What is linted.** The
|
|
1270
|
-
`
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1299
|
+
**What is linted.** The tool's universal defaults — the `IGNORE_DIRS` list from
|
|
1300
|
+
`ignore.ts` (published as `@md-code/follow-architecture/ignore.js`): installed
|
|
1301
|
+
dependencies and generated output, the same in every repository — plus this
|
|
1302
|
+
repository's own `ignoreDirs` / `ignores`, then `include` narrowing. The path list
|
|
1303
|
+
`IGNORE_PATHS` ships **empty** (see [Scan scope](#scan-scope)): a repository states
|
|
1304
|
+
its own scope once, in `ignores` here and in the CLI's `--ignore` flags, and both
|
|
1305
|
+
read the same constant. `@md-code/config/eslint` no longer spreads a scope of ours
|
|
1306
|
+
into its global `ignores`. Nothing here says a word about tests, so this package's
|
|
1307
|
+
own tests are in the lint area like any other file — a test that breaks a law the
|
|
1308
|
+
architecture describes is reported.
|
|
1278
1309
|
|
|
1279
1310
|
**What the editor shows.** One diagnostic per finding: the finding's message, then
|
|
1280
1311
|
`How to fix:` and the named repairs when the decision maker has any. Findings from a
|
package/dist/closure-project.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.openClosure = void 0;
|
|
37
27
|
// THE FILES A CHECK NEEDS BESIDE THE ONE IT IS ABOUT. A record answers for its own
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.SCOPE = exports.normalizeEntities = void 0;
|
|
37
27
|
// Normalize the YAML `entities` section — the architecture's model of WHAT
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.fileObjects = exports.objectsFor = exports.entityScope = exports.projectEntitiesByFile = exports.projectEntityIndex = void 0;
|
|
37
27
|
// THE PROJECT-WIDE CLASSIFY PASS. A query scope may name any code entity
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.walkFile = void 0;
|
|
37
27
|
// ONE walk over ONE file: load its syntax, collect the candidates, attach every
|
package/dist/config-project.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.openProject = void 0;
|
|
37
27
|
// The ts-morph project a run works on: the WHOLE repo, loaded once, with the
|
package/dist/config-report.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.recordFindings = exports.reportFor = exports.DEFAULT_EXPORT_PATH = void 0;
|
|
37
27
|
// The report file. A lint run visits every file once and the rule's create()
|
package/dist/config-rule.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.rule = void 0;
|
|
37
27
|
// The ESLint rule itself: anchor the run on the file being linted, load the
|
package/dist/config-state.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.indexVerdict = exports.getRuleState = exports.findRepoRoot = void 0;
|
|
37
27
|
// The rule's per-repo state: the architecture and the repo file list, cached per
|
package/dist/css/index.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.syntax = exports.tokenize = exports.hostOf = exports.forgetResolutions = exports.restoreResolution = exports.materialiseResolution = exports.templateFacts = exports.stylesheetFacts = exports.attachToCandidates = void 0;
|
|
37
27
|
// CSS as a FACT SOURCE, next to `ast` (which is the language). The engine has no
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.facts = exports.parse = exports.exts = exports.id = void 0;
|
|
37
27
|
// Plain CSS. The reference language: it is only a parser plus the shared
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.reset = exports.referenceTokenizers = exports.forFile = exports.forExt = exports.byId = exports.list = exports.register = void 0;
|
|
37
27
|
const configError = __importStar(require("@md-code/follow-architecture/report/configErrors"));
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.facts = exports.parse = exports.exts = exports.id = void 0;
|
|
37
27
|
// SCSS: the same document, read with a parser that understands `$vars`, nesting
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
27
|
};
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.attachCallDepth = void 0;
|
|
37
27
|
// How many calls deep a piece of code goes before somebody else does the work.
|
|
@@ -2,8 +2,8 @@ import { type SourceFile } from "ts-morph";
|
|
|
2
2
|
import { createTsProject, loadSourceFile, importNameModules, collectFileFacts } from "./file";
|
|
3
3
|
import type { Candidate } from "@md-code/follow-architecture/entities/facts";
|
|
4
4
|
type ImportMap = ReadonlyMap<string, string>;
|
|
5
|
-
declare const collectCandidates: (
|
|
5
|
+
declare const collectCandidates: (sf: SourceFile, importMap: ImportMap, rel: string, repoRoot: string, opts?: {
|
|
6
6
|
usage?: boolean;
|
|
7
|
-
}
|
|
7
|
+
}) => Candidate[];
|
|
8
8
|
declare const releaseFile: (sf: SourceFile) => void;
|
|
9
9
|
export { createTsProject, loadSourceFile, importNameModules, collectFileFacts, collectCandidates, releaseFile };
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.inRepo = exports.repoRelative = exports.declaredFileOfExpr = exports.declaredFileOfType = exports.declaredFileOf = exports.declaredFileOfNode = exports.importNameModules = void 0;
|
|
37
27
|
// WHICH FILE DECLARES A VALUE — the type checker, through imports, aliases and
|