@component-compass/cli 0.0.0-pr-3-8916f3c-20260507145532
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 +5 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +110 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/init.d.ts +6 -0
- package/dist/commands/init.js +61 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/scan.d.ts +12 -0
- package/dist/commands/scan.js +147 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/config/loader.d.ts +6 -0
- package/dist/config/loader.js +62 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/schema.d.ts +32 -0
- package/dist/config/schema.js +15 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/tag-rules.d.ts +2 -0
- package/dist/config/tag-rules.js +34 -0
- package/dist/config/tag-rules.js.map +1 -0
- package/dist/dispatcher.d.ts +8 -0
- package/dist/dispatcher.js +22 -0
- package/dist/dispatcher.js.map +1 -0
- package/dist/envelope/git.d.ts +13 -0
- package/dist/envelope/git.js +69 -0
- package/dist/envelope/git.js.map +1 -0
- package/dist/envelope/index.d.ts +10 -0
- package/dist/envelope/index.js +57 -0
- package/dist/envelope/index.js.map +1 -0
- package/dist/envelope/repo-id.d.ts +16 -0
- package/dist/envelope/repo-id.js +40 -0
- package/dist/envelope/repo-id.js.map +1 -0
- package/dist/identity.d.ts +46 -0
- package/dist/identity.js +92 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/local-index/detect-react.d.ts +2 -0
- package/dist/local-index/detect-react.js +128 -0
- package/dist/local-index/detect-react.js.map +1 -0
- package/dist/local-index/detect-vue.d.ts +2 -0
- package/dist/local-index/detect-vue.js +164 -0
- package/dist/local-index/detect-vue.js.map +1 -0
- package/dist/local-index/detect-wc.d.ts +2 -0
- package/dist/local-index/detect-wc.js +74 -0
- package/dist/local-index/detect-wc.js.map +1 -0
- package/dist/local-index/index.d.ts +6 -0
- package/dist/local-index/index.js +31 -0
- package/dist/local-index/index.js.map +1 -0
- package/dist/local-index/types.d.ts +2 -0
- package/dist/local-index/types.js +2 -0
- package/dist/local-index/types.js.map +1 -0
- package/dist/local-index/walker.d.ts +11 -0
- package/dist/local-index/walker.js +47 -0
- package/dist/local-index/walker.js.map +1 -0
- package/dist/manifest/barrel-parser.d.ts +22 -0
- package/dist/manifest/barrel-parser.js +62 -0
- package/dist/manifest/barrel-parser.js.map +1 -0
- package/dist/manifest/discovery.d.ts +24 -0
- package/dist/manifest/discovery.js +194 -0
- package/dist/manifest/discovery.js.map +1 -0
- package/dist/manifest/index.d.ts +6 -0
- package/dist/manifest/index.js +98 -0
- package/dist/manifest/index.js.map +1 -0
- package/dist/manifest/resolver.d.ts +30 -0
- package/dist/manifest/resolver.js +136 -0
- package/dist/manifest/resolver.js.map +1 -0
- package/dist/manifest/run-discovery.d.ts +12 -0
- package/dist/manifest/run-discovery.js +46 -0
- package/dist/manifest/run-discovery.js.map +1 -0
- package/dist/manifest/types.d.ts +3 -0
- package/dist/manifest/types.js +2 -0
- package/dist/manifest/types.js.map +1 -0
- package/dist/occurrences.d.ts +12 -0
- package/dist/occurrences.js +42 -0
- package/dist/occurrences.js.map +1 -0
- package/dist/reporter/index.d.ts +25 -0
- package/dist/reporter/index.js +50 -0
- package/dist/reporter/index.js.map +1 -0
- package/dist/reporter/json.d.ts +6 -0
- package/dist/reporter/json.js +11 -0
- package/dist/reporter/json.js.map +1 -0
- package/dist/reporter/stdout.d.ts +2 -0
- package/dist/reporter/stdout.js +40 -0
- package/dist/reporter/stdout.js.map +1 -0
- package/dist/rollup.d.ts +21 -0
- package/dist/rollup.js +78 -0
- package/dist/rollup.js.map +1 -0
- package/dist/seeds.d.ts +28 -0
- package/dist/seeds.js +109 -0
- package/dist/seeds.js.map +1 -0
- package/dist/types/brand.d.ts +11 -0
- package/dist/types/brand.js +5 -0
- package/dist/types/brand.js.map +1 -0
- package/dist/types/component-id.d.ts +2 -0
- package/dist/types/component-id.js +2 -0
- package/dist/types/component-id.js.map +1 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/util/git.d.ts +1 -0
- package/dist/util/git.js +13 -0
- package/dist/util/git.js.map +1 -0
- package/dist/util/log.d.ts +7 -0
- package/dist/util/log.js +17 -0
- package/dist/util/log.js.map +1 -0
- package/dist/util/pkg.d.ts +1 -0
- package/dist/util/pkg.js +13 -0
- package/dist/util/pkg.js.map +1 -0
- package/dist/util/pnp-check.d.ts +1 -0
- package/dist/util/pnp-check.js +6 -0
- package/dist/util/pnp-check.js.map +1 -0
- package/dist/util/posix.d.ts +2 -0
- package/dist/util/posix.js +18 -0
- package/dist/util/posix.js.map +1 -0
- package/dist/walker/files.d.ts +6 -0
- package/dist/walker/files.js +12 -0
- package/dist/walker/files.js.map +1 -0
- package/dist/walker/resolve-import.d.ts +9 -0
- package/dist/walker/resolve-import.js +119 -0
- package/dist/walker/resolve-import.js.map +1 -0
- package/examples/github-actions-workflow.yml +20 -0
- package/package.json +63 -0
- package/schema/config.schema.json +61 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { readFileSync, statSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { dirname, isAbsolute, resolve as pathResolve } from "node:path";
|
|
4
|
+
/**
|
|
5
|
+
* Module specifier resolver layered on top of Node's module resolution.
|
|
6
|
+
*
|
|
7
|
+
* Resolution order (first hit wins):
|
|
8
|
+
* 1. Config `aliases` (explicit user-supplied alias map).
|
|
9
|
+
* 2. `compilerOptions.paths` from the tsconfig at `tsconfigPath`.
|
|
10
|
+
* 3. Node module resolution via `require.resolve`.
|
|
11
|
+
*
|
|
12
|
+
* Returns the absolute path of the resolved file, or `null` if no layer
|
|
13
|
+
* matches. See spec §3.5.
|
|
14
|
+
*
|
|
15
|
+
* v1 limitations:
|
|
16
|
+
* - Tsconfig `extends` chains are NOT followed; only the named file's own
|
|
17
|
+
* `compilerOptions.paths` and `baseUrl` are consulted.
|
|
18
|
+
* - No caching of resolved specifiers (workload is small for v1 scans).
|
|
19
|
+
*/
|
|
20
|
+
const FILE_EXTENSIONS = [".tsx", ".ts", ".jsx", ".js", ".vue"];
|
|
21
|
+
const REGEX_META = /[.+?^${}()|[\]\\]/g;
|
|
22
|
+
export function createImportResolver(opts) {
|
|
23
|
+
const configEntries = compileAliasMap(opts.aliases, opts.repoRoot);
|
|
24
|
+
const tsconfigEntries = loadTsconfigEntries(opts.tsconfigPath);
|
|
25
|
+
// Reused for `require.resolve` fallback. Anchoring at <repoRoot>/_ ensures
|
|
26
|
+
// Node walks up through <repoRoot>/node_modules and parents.
|
|
27
|
+
const requireFromRepo = createRequire(pathResolve(opts.repoRoot, "_"));
|
|
28
|
+
return function resolveImport(from, spec) {
|
|
29
|
+
for (const layers of [configEntries, tsconfigEntries]) {
|
|
30
|
+
for (const entry of layers) {
|
|
31
|
+
const m = entry.pattern.exec(spec);
|
|
32
|
+
if (!m)
|
|
33
|
+
continue;
|
|
34
|
+
const wildcard = m[1] ?? "";
|
|
35
|
+
for (const target of entry.targets) {
|
|
36
|
+
const expanded = pathResolve(entry.base, target.replace(/\*/g, wildcard));
|
|
37
|
+
const hit = tryFileWithExtensions(expanded);
|
|
38
|
+
if (hit)
|
|
39
|
+
return hit;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
return requireFromRepo.resolve(spec, { paths: [dirname(from), opts.repoRoot] });
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function compileAliasMap(aliases, base) {
|
|
52
|
+
if (!aliases)
|
|
53
|
+
return [];
|
|
54
|
+
const out = [];
|
|
55
|
+
for (const [key, targets] of Object.entries(aliases)) {
|
|
56
|
+
out.push({ pattern: compilePattern(key), targets, base });
|
|
57
|
+
}
|
|
58
|
+
return out;
|
|
59
|
+
}
|
|
60
|
+
function loadTsconfigEntries(tsconfigPath) {
|
|
61
|
+
if (!tsconfigPath)
|
|
62
|
+
return [];
|
|
63
|
+
let raw;
|
|
64
|
+
try {
|
|
65
|
+
raw = readFileSync(tsconfigPath, "utf8");
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
let parsed;
|
|
71
|
+
try {
|
|
72
|
+
parsed = JSON.parse(raw);
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
const co = parsed.compilerOptions ?? {};
|
|
78
|
+
if (!co.paths)
|
|
79
|
+
return [];
|
|
80
|
+
const tsconfigDir = dirname(tsconfigPath);
|
|
81
|
+
const base = co.baseUrl ? pathResolve(tsconfigDir, co.baseUrl) : tsconfigDir;
|
|
82
|
+
const out = [];
|
|
83
|
+
for (const [key, targets] of Object.entries(co.paths)) {
|
|
84
|
+
out.push({ pattern: compilePattern(key), targets, base });
|
|
85
|
+
}
|
|
86
|
+
return out;
|
|
87
|
+
}
|
|
88
|
+
/** Compiles an alias pattern (literal text + `*` wildcard) into an anchored regex
|
|
89
|
+
* with the wildcard captured for substitution into the target. */
|
|
90
|
+
function compilePattern(pattern) {
|
|
91
|
+
return new RegExp(`^${pattern.replace(REGEX_META, "\\$&").replace(/\*/g, "(.*)")}$`);
|
|
92
|
+
}
|
|
93
|
+
/** Tries the path as-is, with each extension, and as a directory with `index.{ext}`. */
|
|
94
|
+
function tryFileWithExtensions(absPath) {
|
|
95
|
+
if (!isAbsolute(absPath))
|
|
96
|
+
return null;
|
|
97
|
+
if (isFile(absPath))
|
|
98
|
+
return absPath;
|
|
99
|
+
for (const ext of FILE_EXTENSIONS) {
|
|
100
|
+
const withExt = absPath + ext;
|
|
101
|
+
if (isFile(withExt))
|
|
102
|
+
return withExt;
|
|
103
|
+
}
|
|
104
|
+
for (const ext of FILE_EXTENSIONS) {
|
|
105
|
+
const indexPath = pathResolve(absPath, `index${ext}`);
|
|
106
|
+
if (isFile(indexPath))
|
|
107
|
+
return indexPath;
|
|
108
|
+
}
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
function isFile(p) {
|
|
112
|
+
try {
|
|
113
|
+
return statSync(p).isFile();
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=resolve-import.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-import.js","sourceRoot":"","sources":["../../src/walker/resolve-import.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AAExE,MAAM,UAAU,GAAG,oBAAoB,CAAC;AAqBxC,MAAM,UAAU,oBAAoB,CAAC,IAAiC;IACpE,MAAM,aAAa,GAAG,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnE,MAAM,eAAe,GAAG,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAE/D,2EAA2E;IAC3E,6DAA6D;IAC7D,MAAM,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;IAEvE,OAAO,SAAS,aAAa,CAAC,IAAY,EAAE,IAAY;QACtD,KAAK,MA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,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;AACvF,CAAC;AAED,wFAAwF;AACxF,SAAS,qBAAqB,CAAC,OAAe;IAC5C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IACtC,IAAI,MAAM,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IACpC,KAAK,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QAClC,MAAM,OAAO,GAAG,OAAO,GAAG,GAAG,CAAC;QAC9B,IAAI,MAAM,CAAC,OAAO,CAAC;YAAE,OAAO,OAAO,CAAC;IACtC,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QAClC,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,EAAE,QAAQ,GAAG,EAAE,CAAC,CAAC;QACtD,IAAI,MAAM,CAAC,SAAS,CAAC;YAAE,OAAO,SAAS,CAAC;IAC1C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,MAAM,CAAC,CAAS;IACvB,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: component-compass
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
scan:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
- uses: actions/setup-node@v4
|
|
13
|
+
with:
|
|
14
|
+
node-version: 18
|
|
15
|
+
- run: corepack enable && yarn install --immutable
|
|
16
|
+
- run: yarn dlx component-compass scan --quiet
|
|
17
|
+
- uses: actions/upload-artifact@v4
|
|
18
|
+
with:
|
|
19
|
+
name: component-compass
|
|
20
|
+
path: component-compass.json
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@component-compass/cli",
|
|
3
|
+
"version": "0.0.0-pr-3-8916f3c-20260507145532",
|
|
4
|
+
"description": "Open-source CLI for measuring design-system component usage across multi-framework consumer repos.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"compass": "dist/cli.js",
|
|
11
|
+
"component-compass": "dist/cli.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"schema",
|
|
16
|
+
"examples",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./package.json": "./package.json",
|
|
25
|
+
"./schema/config.schema.json": "./schema/config.schema.json"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc -p tsconfig.json",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"lint": "biome lint src tests",
|
|
33
|
+
"clean": "rm -rf dist .turbo"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@babel/parser": "^7.29.3",
|
|
37
|
+
"@babel/types": "^7.29.0",
|
|
38
|
+
"@component-compass/ast-utils": "0.0.0-pr-3-8916f3c-20260507145532",
|
|
39
|
+
"@component-compass/parser-html": "0.0.0-pr-3-8916f3c-20260507145532",
|
|
40
|
+
"@component-compass/parser-lit": "0.0.0-pr-3-8916f3c-20260507145532",
|
|
41
|
+
"@component-compass/parser-react": "0.0.0-pr-3-8916f3c-20260507145532",
|
|
42
|
+
"@component-compass/parser-vue": "0.0.0-pr-3-8916f3c-20260507145532",
|
|
43
|
+
"@component-compass/plugin-core": "0.0.0-pr-3-8916f3c-20260507145532",
|
|
44
|
+
"@vue/compiler-sfc": "^3.5.33",
|
|
45
|
+
"ajv": "^8.20.0",
|
|
46
|
+
"glob": "^13.0.0",
|
|
47
|
+
"globby": "^16.2.0",
|
|
48
|
+
"picomatch": "^4.0.4",
|
|
49
|
+
"ulid": "^3.0.2"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^24.0.0",
|
|
53
|
+
"@types/picomatch": "^4.0.3",
|
|
54
|
+
"typescript": "^5.9.0",
|
|
55
|
+
"vitest": "^4.0.0"
|
|
56
|
+
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=20"
|
|
59
|
+
},
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://unpkg.com/@component-compass/cli/schema/config.schema.json",
|
|
4
|
+
"title": "component-compass config",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["repoId", "packageScopes", "include"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "type": "string" },
|
|
10
|
+
"repoId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"packageScopes": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": { "type": "string", "minLength": 1 }
|
|
14
|
+
},
|
|
15
|
+
"manifestSources": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": { "type": "string", "minLength": 1 }
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"include": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": { "type": "string", "minLength": 1 },
|
|
25
|
+
"minItems": 1
|
|
26
|
+
},
|
|
27
|
+
"exclude": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": { "type": "string", "minLength": 1 }
|
|
30
|
+
},
|
|
31
|
+
"captureValues": { "type": "boolean" },
|
|
32
|
+
"output": { "type": "string", "minLength": 1 },
|
|
33
|
+
"tsconfigPath": { "type": "string", "minLength": 1 },
|
|
34
|
+
"aliases": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": { "type": "string", "minLength": 1 }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"tagRules": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": ["tag", "match"],
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"properties": {
|
|
48
|
+
"tag": { "type": "string", "minLength": 1 },
|
|
49
|
+
"match": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": ["packageName"],
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"properties": {
|
|
54
|
+
"packageName": { "type": "string", "minLength": 1 }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|