@r_masseater/vite-plus-adopt 0.10.2 → 0.11.1

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.
@@ -1,9 +1,9 @@
1
1
  import { Effect, Path, Schema } from "effect";
2
2
  import { TextlintRcConfig } from "@textlint/config-loader";
3
3
  import { TextlintKernelRule } from "@textlint/kernel";
4
+ import { H56mConfig } from "@r_masseater/h56m";
4
5
  import "effector";
5
6
  import { UserConfig } from "@commitlint/types";
6
- import { Configuration, Rule } from "markdownlint";
7
7
  interface File {
8
8
  type: 'file';
9
9
  path: string;
@@ -14,7 +14,7 @@ interface Folder {
14
14
  children: Array<File | Folder>;
15
15
  }
16
16
  type BaseRuleOptions = Record<string, unknown>;
17
- interface Rule$1<Context = unknown, RuleOptions extends BaseRuleOptions = BaseRuleOptions, RuleName extends string | number | symbol = string> {
17
+ interface Rule<Context = unknown, RuleOptions extends BaseRuleOptions = BaseRuleOptions, RuleName extends string | number | symbol = string> {
18
18
  /** Short code name for the rule. */
19
19
  name: RuleName;
20
20
  check: (this: Context, root: Folder, ruleOptions: RuleOptions) => RuleResult | Promise<RuleResult>;
@@ -63,7 +63,7 @@ type Fix = {
63
63
  path: string;
64
64
  content: string;
65
65
  };
66
- type Config$1<Rules extends Array<Rule$1>> = Array<ConfigObject<Rules> | Plugin<unknown, Rules> | GlobalIgnore>;
66
+ type Config$1<Rules extends Array<Rule>> = Array<ConfigObject<Rules> | Plugin<unknown, Rules> | GlobalIgnore>;
67
67
  type Severity = 'off' | 'warn' | 'error';
68
68
  /**
69
69
  * Extracts a union of rule names from a given tuple of `Rule` objects.
@@ -74,7 +74,7 @@ type Severity = 'off' | 'warn' | 'error';
74
74
  * type Result = RuleNames<[Rule<Context, Options, 'foo'>, Rule<Context, Options, 'bar'>]>
75
75
  * // Result is 'foo' | 'bar'
76
76
  */
77
- type RuleNames<Rules extends Array<Rule$1>> = Rules[number]['name'];
77
+ type RuleNames<Rules extends Array<Rule>> = Rules[number]['name'];
78
78
  type LookUpByName<Union, Name> = Union extends {
79
79
  name: Name;
80
80
  } ? Union : never;
@@ -87,8 +87,8 @@ type LookUpByName<Union, Name> = Union extends {
87
87
  * type Result = OptionsForRule<Rules, 'foo'>
88
88
  * // Result is { foo: string }
89
89
  */
90
- type OptionsForRule<Rules extends Array<Rule$1>, RuleName extends RuleNames<Rules>> = LookUpByName<Rules[number], RuleName> extends Rule$1<unknown, infer Options> ? Options : never;
91
- interface ConfigObject<Rules extends Array<Rule$1>> {
90
+ type OptionsForRule<Rules extends Array<Rule>, RuleName extends RuleNames<Rules>> = LookUpByName<Rules[number], RuleName> extends Rule<unknown, infer Options> ? Options : never;
91
+ interface ConfigObject<Rules extends Array<Rule>> {
92
92
  /** Globs of files to check. */
93
93
  files?: Array<string>;
94
94
  /** Globs of files to ignore. */
@@ -99,14 +99,14 @@ interface ConfigObject<Rules extends Array<Rule$1>> {
99
99
  type GlobalIgnore = {
100
100
  ignores: Array<string>;
101
101
  };
102
- interface Plugin<Context = unknown, Rules extends Array<Rule$1<Context>> = Array<Rule$1>> {
102
+ interface Plugin<Context = unknown, Rules extends Array<Rule<Context>> = Array<Rule>> {
103
103
  meta: {
104
104
  name: string;
105
105
  version: string;
106
106
  };
107
107
  ruleDefinitions: Rules;
108
108
  }
109
- declare function defineConfig<Rules extends Array<Rule$1> = Array<Rule$1>>(config: Config$1<Rules>): Config$1<Rules>;
109
+ declare function defineConfig<Rules extends Array<Rule> = Array<Rule>>(config: Config$1<Rules>): Config$1<Rules>;
110
110
  declare const VpToolsError_base: Schema.Class<VpToolsError, Schema.TaggedStruct<"VpToolsError", {
111
111
  readonly kind: Schema.Literals<readonly ["config-missing", "tool-failed", "checks-failed"]>;
112
112
  readonly message: Schema.String;
@@ -127,36 +127,6 @@ declare const SkillsSectionSchema: Schema.$Record<Schema.Union<readonly [Schema.
127
127
  type SkillsSection = typeof SkillsSectionSchema.Encoded;
128
128
  interface CommitlintConfig extends Readonly<UserConfig> {}
129
129
  type SteigerConfig = readonly ReturnType<typeof defineConfig>[number][];
130
- interface BetterleaksRule {
131
- readonly id: string;
132
- readonly description?: string;
133
- readonly keywords?: readonly string[];
134
- readonly regex?: string;
135
- readonly path?: string;
136
- readonly valueGroup?: number;
137
- readonly specificity?: number;
138
- readonly tags?: readonly string[];
139
- readonly skipReport?: boolean;
140
- readonly filter?: string;
141
- readonly confidence?: "low" | "medium" | "high";
142
- readonly validate?: string;
143
- readonly analyze?: string;
144
- readonly revoke?: string;
145
- }
146
- interface BetterleaksConfig {
147
- readonly title?: string;
148
- readonly description?: string;
149
- readonly minVersion?: string;
150
- readonly prefilter?: string;
151
- readonly filter?: string;
152
- readonly extend?: Readonly<{
153
- useDefault?: boolean;
154
- path?: string;
155
- disabledRules?: readonly string[];
156
- }>;
157
- readonly rules?: readonly BetterleaksRule[];
158
- readonly ignoredSecrets?: readonly string[];
159
- }
160
130
  type TextlintRuleOptions = NonNullable<TextlintKernelRule["options"]>;
161
131
  interface TextlintPreset {
162
132
  readonly rules: Readonly<Record<string, TextlintKernelRule["rule"]>>;
@@ -170,11 +140,6 @@ interface TextlintConfig extends TextlintRcConfig {
170
140
  readonly presets?: Readonly<Record<string, TextlintPreset>>;
171
141
  readonly sources?: readonly TextlintSource[];
172
142
  }
173
- interface MarkdownlintConfig {
174
- readonly config?: Configuration;
175
- readonly customRules?: readonly Rule[];
176
- readonly ignores?: readonly string[];
177
- }
178
143
  interface SteigerSection {
179
144
  readonly paths: readonly string[];
180
145
  readonly rules: SteigerConfig;
@@ -193,11 +158,10 @@ interface DependencyRules {
193
158
  readonly peerRanges?: "identical" | "intersect";
194
159
  }
195
160
  interface ToolSections {
196
- readonly betterleaks?: BetterleaksConfig;
197
161
  readonly commitlint?: CommitlintConfig;
198
162
  readonly dependencyRules?: DependencyRules;
199
163
  readonly fallow?: FallowConfig;
200
- readonly markdownlint?: MarkdownlintConfig;
164
+ readonly h56m?: H56mConfig;
201
165
  readonly skills?: SkillsSection;
202
166
  readonly steiger?: SteigerSection;
203
167
  readonly textlint?: TextlintConfig;
@@ -205,5 +169,5 @@ interface ToolSections {
205
169
  declare module "vite" {
206
170
  interface UserConfig extends ToolSections {}
207
171
  }
208
- export { FallowConfig as a, SteigerSection as c, SkillsSection as d, VpToolsError as f, DependencyRules as i, TextlintConfig as l, BetterleaksRule as n, MarkdownlintConfig as o, CommitlintConfig as r, SteigerConfig as s, BetterleaksConfig as t, ToolSections as u };
209
- //# sourceMappingURL=index-HO_uRepr.d.mts.map
172
+ export { SteigerSection as a, SkillsSection as c, SteigerConfig as i, VpToolsError as l, DependencyRules as n, TextlintConfig as o, FallowConfig as r, ToolSections as s, CommitlintConfig as t };
173
+ //# sourceMappingURL=index-DyvYt7R0.d.mts.map
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as FallowConfig, c as SteigerSection, d as SkillsSection, f as VpToolsError, i as DependencyRules, l as TextlintConfig, n as BetterleaksRule, o as MarkdownlintConfig, r as CommitlintConfig, s as SteigerConfig, t as BetterleaksConfig, u as ToolSections } from "./index-HO_uRepr.mjs";
1
+ import { a as SteigerSection, c as SkillsSection, i as SteigerConfig, l as VpToolsError, n as DependencyRules, o as TextlintConfig, r as FallowConfig, s as ToolSections, t as CommitlintConfig } from "./index-DyvYt7R0.mjs";
2
2
  import { Effect, FileSystem, Path, PlatformError, Schema, Stdio } from "effect";
3
3
  import { ChildProcessSpawner } from "effect/process";
4
4
  /** @internal */
@@ -16,5 +16,5 @@ export declare const runVpa: {
16
16
  (args: readonly string[]): (root: string) => CommandEffect;
17
17
  (root: string, args: readonly string[]): CommandEffect;
18
18
  };
19
- export { type BetterleaksConfig, type BetterleaksRule, type CommitlintConfig, type DependencyRules, type FallowConfig, type MarkdownlintConfig, type SkillsSection, type SteigerConfig, type SteigerSection, type TextlintConfig, type ToolSections, VpToolsError };
19
+ export { type CommitlintConfig, type DependencyRules, type FallowConfig, type SkillsSection, type SteigerConfig, type SteigerSection, type TextlintConfig, type ToolSections, VpToolsError };
20
20
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,3 +1 @@
1
- import { n as loadViteConfig, t as runVpa } from "./vpa-B3VOYbg1.mjs";
2
- import { d as VpToolsError } from "./output-BdvTIQ-k.mjs";
3
- export { VpToolsError, loadViteConfig, runVpa };
1
+ export { i as VpToolsError, r as loadViteConfig, t as runVpa } from "./vpa-MRYbih3E.mjs";