@absolutejs/absolute 0.19.0-beta.1136 → 0.19.0-beta.1138
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +7 -8
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +55 -15
- package/dist/index.js +7 -8
- package/dist/index.js.map +3 -3
- package/dist/src/cli/scripts/eslint.d.ts +23 -1
- package/dist/src/cli/scripts/eslintChunked.d.ts +7 -0
- package/dist/src/cli/scripts/lintProof.d.ts +5 -4
- package/package.json +1 -1
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
export declare const getCacheLocation: (args: string[]) => string;
|
|
2
|
+
export declare const findEslintConfigPath: (cwd?: string) => string | null;
|
|
3
|
+
/**
|
|
4
|
+
* Guards the on-disk ESLint cache. Covers the INSTALLED manifests of every
|
|
5
|
+
* lint-related dependency — plugin and parser implementations are functions,
|
|
6
|
+
* so they vanish from the config object ESLint itself hashes, and an upgrade
|
|
7
|
+
* (or node_modules drifting from the lockfile) would otherwise reuse stale
|
|
8
|
+
* verdicts forever.
|
|
9
|
+
*
|
|
10
|
+
* Deliberately NOT the config file's text. ESLint already stores a hash of
|
|
11
|
+
* each file's *calculated* config in its own cache entry, so editing one
|
|
12
|
+
* `files:` override re-lints exactly the files whose computed config changed
|
|
13
|
+
* and leaves the rest hot. Mixing config text in here dropped every cached
|
|
14
|
+
* verdict in the repo for a one-line edit. The config's import list still
|
|
15
|
+
* feeds `lintDependencyNames`, so adding a plugin does reset the cache.
|
|
16
|
+
*
|
|
17
|
+
* The lint proof must fail closed on any config edit, so it hashes
|
|
18
|
+
* `createEslintConfigDigest` in on top of this.
|
|
19
|
+
*/
|
|
2
20
|
export declare const createEslintCacheFingerprint: (cwd?: string) => string;
|
|
21
|
+
/** Digest of the flat-config file itself, for callers that must invalidate on
|
|
22
|
+
* any config edit rather than defer to ESLint's per-file config hashing. */
|
|
23
|
+
export declare const createEslintConfigDigest: (cwd?: string) => string;
|
|
3
24
|
type EslintCacheOptions = {
|
|
4
25
|
cacheLocation: string;
|
|
5
26
|
cwd?: string;
|
|
@@ -12,7 +33,8 @@ export declare const buildEslintCommand: (args: string[], cacheLocation: string)
|
|
|
12
33
|
*
|
|
13
34
|
* - Caching: enabled by default with ESLint's content strategy, so Git
|
|
14
35
|
* operations that alter mtimes don't make unchanged files expensive.
|
|
15
|
-
* Installed lint-tool
|
|
36
|
+
* Installed lint-tool changes invalidate the cache automatically; config
|
|
37
|
+
* edits are left to ESLint's own per-file config hashing.
|
|
16
38
|
* The cache location is overridable via `ABSOLUTE_ESLINT_CACHE`
|
|
17
39
|
* (default: `.absolutejs/eslint-cache`).
|
|
18
40
|
* - Implicit lint target: `.` is appended only when the user hasn't
|
|
@@ -7,6 +7,13 @@ type ChunkedArgs = {
|
|
|
7
7
|
passthrough: string[];
|
|
8
8
|
shards: number;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* The exact set of files an `absolute eslint --chunked` invocation lints,
|
|
12
|
+
* resolved through the same glob semantics the run itself uses. `--changed` is
|
|
13
|
+
* deliberately ignored: callers that attest to a run (the lint proof) must
|
|
14
|
+
* cover the whole lint set, not one diff's slice of it.
|
|
15
|
+
*/
|
|
16
|
+
export declare const resolveLintTargets: (args: string[], cwd?: string) => string[];
|
|
10
17
|
export declare const eslintChunked: (args: string[], cwd?: string) => Promise<void>;
|
|
11
18
|
/**
|
|
12
19
|
* Files that differ from `base` plus anything staged/unstaged/untracked —
|
|
@@ -29,11 +29,12 @@ type VerifyLintProofOptions = CreateLintProofOptions & {
|
|
|
29
29
|
trustedKeyLocation?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* Build a Git tree from the
|
|
33
|
-
* index. Ignored files and the proof itself are excluded. Git
|
|
34
|
-
* normal clean filters, so the digest is stable across checkout
|
|
32
|
+
* Build a Git tree from the files the lint command covers, without modifying
|
|
33
|
+
* the real index. Ignored files and the proof itself are excluded. Git
|
|
34
|
+
* performs its normal clean filters, so the digest is stable across checkout
|
|
35
|
+
* platforms.
|
|
35
36
|
*/
|
|
36
|
-
export declare const createLintSourceTree: (cwd?: string, proofLocation?: string) => string;
|
|
37
|
+
export declare const createLintSourceTree: (cwd?: string, proofLocation?: string, command?: string[]) => string;
|
|
37
38
|
export declare const createLintProof: (command: string[], options?: CreateLintProofOptions) => LintProof;
|
|
38
39
|
export declare const writeLintProof: (command: string[], options?: WriteLintProofOptions) => LintProof;
|
|
39
40
|
export declare const verifyLintProof: (command: string[], options?: VerifyLintProofOptions) => ProofResult;
|