hermex 2.0.0-beta.8 → 2.0.0-beta.9
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/index.d.mts +9 -1
- package/dist/index.mjs +13 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -339,6 +339,14 @@ interface BannedPackageViolation {
|
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/index.d.ts
|
|
342
|
+
/**
|
|
343
|
+
* Identity helper for authoring `hermex.config.ts` with full type inference
|
|
344
|
+
* and autocomplete — mirrors the same `defineConfig` convention used by
|
|
345
|
+
* Vite, ESLint's flat config, and Vitest. Returns its argument unchanged;
|
|
346
|
+
* `loadConfig` (`src/config/loader.ts`) accepts a plain object default
|
|
347
|
+
* export either way, so this is purely a DX affordance, not a requirement.
|
|
348
|
+
*/
|
|
349
|
+
declare function defineConfig(config: HermexConfigInput): HermexConfigInput;
|
|
342
350
|
/** Shape of a single entry in `components` — same as `ComponentUsage`, but with `files` as an array (JSON has no `Set`) */
|
|
343
351
|
interface HermexScanComponent extends Omit<ComponentUsage, 'files'> {
|
|
344
352
|
files: string[];
|
|
@@ -360,4 +368,4 @@ interface HermexScanResult {
|
|
|
360
368
|
bannedPackageViolations: BannedPackageViolation[];
|
|
361
369
|
}
|
|
362
370
|
//#endregion
|
|
363
|
-
export { type BannedPackageViolation, type CodeownersRule, type ComponentUsage, type EngineVersionRule, type HermexConfig, type HermexConfigInput, HermexScanComponent, HermexScanResult, type OutputConfig, type PackageDistribution, type PackageFieldRule, type PackagesConfig, type PatternCount, type ReleaseAgeConfig, type ReleaseAgeThresholds, type RuleConfig, type RuleSeverity, type RuleViolation, type RulesConfig, type VersusConfig, type VersusEntry, type VersusResult };
|
|
371
|
+
export { type BannedPackageViolation, type CodeownersRule, type ComponentUsage, type EngineVersionRule, type HermexConfig, type HermexConfigInput, HermexScanComponent, HermexScanResult, type OutputConfig, type PackageDistribution, type PackageFieldRule, type PackagesConfig, type PatternCount, type ReleaseAgeConfig, type ReleaseAgeThresholds, type RuleConfig, type RuleSeverity, type RuleViolation, type RulesConfig, type VersusConfig, type VersusEntry, type VersusResult, defineConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Identity helper for authoring `hermex.config.ts` with full type inference
|
|
4
|
+
* and autocomplete — mirrors the same `defineConfig` convention used by
|
|
5
|
+
* Vite, ESLint's flat config, and Vitest. Returns its argument unchanged;
|
|
6
|
+
* `loadConfig` (`src/config/loader.ts`) accepts a plain object default
|
|
7
|
+
* export either way, so this is purely a DX affordance, not a requirement.
|
|
8
|
+
*/
|
|
9
|
+
function defineConfig(config) {
|
|
10
|
+
return config;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { defineConfig };
|