@r_masseater/vite-plus-adopt 0.10.1 → 0.10.2

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/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as runCli } from "./run-cli-BiPFbX9J.mjs";
3
- import { t as runVpa } from "./vpa-DHB6y2A5.mjs";
3
+ import { t as runVpa } from "./vpa-B3VOYbg1.mjs";
4
4
  import { Effect, Path, Stdio } from "effect";
5
5
  // src/app/cli.ts
6
6
  runCli(Effect.gen(function* main() {
package/dist/fsd.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as SteigerConfig } from "./index-DiN12XmL.mjs";
1
+ import { s as SteigerConfig } from "./index-HO_uRepr.mjs";
2
2
  export interface FsdPlugin {
3
3
  readonly plugin: SteigerConfig[number];
4
4
  readonly configs: {
@@ -1,9 +1,112 @@
1
- import { t as defineConfig } from "./steiger-BX9S5pik.mjs";
2
1
  import { Effect, Path, Schema } from "effect";
3
2
  import { TextlintRcConfig } from "@textlint/config-loader";
4
3
  import { TextlintKernelRule } from "@textlint/kernel";
4
+ import "effector";
5
5
  import { UserConfig } from "@commitlint/types";
6
6
  import { Configuration, Rule } from "markdownlint";
7
+ interface File {
8
+ type: 'file';
9
+ path: string;
10
+ }
11
+ interface Folder {
12
+ type: 'folder';
13
+ path: string;
14
+ children: Array<File | Folder>;
15
+ }
16
+ type BaseRuleOptions = Record<string, unknown>;
17
+ interface Rule$1<Context = unknown, RuleOptions extends BaseRuleOptions = BaseRuleOptions, RuleName extends string | number | symbol = string> {
18
+ /** Short code name for the rule. */
19
+ name: RuleName;
20
+ check: (this: Context, root: Folder, ruleOptions: RuleOptions) => RuleResult | Promise<RuleResult>;
21
+ }
22
+ interface RuleResult {
23
+ diagnostics: Array<PartialDiagnostic>;
24
+ }
25
+ interface PartialDiagnostic {
26
+ message: string;
27
+ fixes?: Array<Fix>;
28
+ location: {
29
+ /** Absolute path to a folder or a file that contains the issue. */
30
+ path: string;
31
+ /** 1-based line and column indexes of the start of the issue. */
32
+ start?: {
33
+ /** 1-based line index of the start of the issue. */
34
+ line?: number;
35
+ /** 1-based column index of the start of the issue. */
36
+ column?: number;
37
+ };
38
+ /** 1-based line and column indexes of the end of the issue. */
39
+ end?: {
40
+ /** 1-based line index of the end of the issue. */
41
+ line?: number;
42
+ /** 1-based column index of the end of the issue. */
43
+ column?: number;
44
+ };
45
+ };
46
+ }
47
+ type Fix = {
48
+ type: 'rename';
49
+ path: string;
50
+ newName: string;
51
+ } | {
52
+ type: 'create-file';
53
+ path: string;
54
+ content: string;
55
+ } | {
56
+ type: 'create-folder';
57
+ path: string;
58
+ } | {
59
+ type: 'delete';
60
+ path: string;
61
+ } | {
62
+ type: 'modify-file';
63
+ path: string;
64
+ content: string;
65
+ };
66
+ type Config$1<Rules extends Array<Rule$1>> = Array<ConfigObject<Rules> | Plugin<unknown, Rules> | GlobalIgnore>;
67
+ type Severity = 'off' | 'warn' | 'error';
68
+ /**
69
+ * Extracts a union of rule names from a given tuple of `Rule` objects.
70
+ *
71
+ * @example
72
+ * type Context = unknown
73
+ * type Options = BaseRuleOptions
74
+ * type Result = RuleNames<[Rule<Context, Options, 'foo'>, Rule<Context, Options, 'bar'>]>
75
+ * // Result is 'foo' | 'bar'
76
+ */
77
+ type RuleNames<Rules extends Array<Rule$1>> = Rules[number]['name'];
78
+ type LookUpByName<Union, Name> = Union extends {
79
+ name: Name;
80
+ } ? Union : never;
81
+ /**
82
+ * Looks up a rule in a tuple of rules by name and then extracts that rule's options type.
83
+ *
84
+ * @example
85
+ * type Context = unknown
86
+ * type Rules = [Rule<Context, { foo: string }, 'foo'>, Rule<Context, { bar: number }, 'bar'>]
87
+ * type Result = OptionsForRule<Rules, 'foo'>
88
+ * // Result is { foo: string }
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>> {
92
+ /** Globs of files to check. */
93
+ files?: Array<string>;
94
+ /** Globs of files to ignore. */
95
+ ignores?: Array<string>;
96
+ /** Severity of rules and individual rule options. */
97
+ rules: { [key in RuleNames<Rules>]?: Severity | [Severity, OptionsForRule<Rules, key>]; };
98
+ }
99
+ type GlobalIgnore = {
100
+ ignores: Array<string>;
101
+ };
102
+ interface Plugin<Context = unknown, Rules extends Array<Rule$1<Context>> = Array<Rule$1>> {
103
+ meta: {
104
+ name: string;
105
+ version: string;
106
+ };
107
+ ruleDefinitions: Rules;
108
+ }
109
+ declare function defineConfig<Rules extends Array<Rule$1> = Array<Rule$1>>(config: Config$1<Rules>): Config$1<Rules>;
7
110
  declare const VpToolsError_base: Schema.Class<VpToolsError, Schema.TaggedStruct<"VpToolsError", {
8
111
  readonly kind: Schema.Literals<readonly ["config-missing", "tool-failed", "checks-failed"]>;
9
112
  readonly message: Schema.String;
@@ -103,4 +206,4 @@ declare module "vite" {
103
206
  interface UserConfig extends ToolSections {}
104
207
  }
105
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 };
106
- //# sourceMappingURL=index-DiN12XmL.d.mts.map
209
+ //# sourceMappingURL=index-HO_uRepr.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-DiN12XmL.mjs";
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";
2
2
  import { Effect, FileSystem, Path, PlatformError, Schema, Stdio } from "effect";
3
3
  import { ChildProcessSpawner } from "effect/process";
4
4
  /** @internal */
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as loadViteConfig, t as runVpa } from "./vpa-DHB6y2A5.mjs";
1
+ import { n as loadViteConfig, t as runVpa } from "./vpa-B3VOYbg1.mjs";
2
2
  import { d as VpToolsError } from "./output-BdvTIQ-k.mjs";
3
3
  export { VpToolsError, loadViteConfig, runVpa };
@@ -5939,287 +5939,6 @@ var linter = {
5939
5939
  return [runRulesFx.doneData, () => watcher.close()];
5940
5940
  }
5941
5941
  };
5942
- // ../../node_modules/.pnpm/steiger@0.10.0_typescript@7.1.0-beta/node_modules/steiger/dist/app.d.ts
5943
- var [File$1] = [
5944
- 72,
5945
- () => [],
5946
- ["", ""]
5947
- ];
5948
- var [Folder] = [
5949
- 73,
5950
- () => [
5951
- File$1,
5952
- Folder,
5953
- Array
5954
- ],
5955
- [
5956
- "",
5957
- "",
5958
- "",
5959
- "",
5960
- "",
5961
- ""
5962
- ]
5963
- ];
5964
- var [BaseRuleOptions] = [
5965
- 74,
5966
- () => [Record],
5967
- [""]
5968
- ];
5969
- var [Rule] = [
5970
- 75,
5971
- (Context, RuleOptions, RuleName) => [
5972
- BaseRuleOptions,
5973
- BaseRuleOptions,
5974
- RuleName,
5975
- Context,
5976
- Folder,
5977
- RuleOptions,
5978
- RuleResult,
5979
- RuleResult,
5980
- Promise
5981
- ],
5982
- [
5983
- "",
5984
- "",
5985
- "",
5986
- "",
5987
- "",
5988
- "",
5989
- "",
5990
- "",
5991
- "",
5992
- "",
5993
- "",
5994
- "",
5995
- "",
5996
- "",
5997
- "",
5998
- "",
5999
- ""
6000
- ]
6001
- ];
6002
- var [RuleResult] = [
6003
- 76,
6004
- () => [PartialDiagnostic, Array],
6005
- [
6006
- "",
6007
- "",
6008
- ""
6009
- ]
6010
- ];
6011
- var [PartialDiagnostic] = [
6012
- 77,
6013
- () => [Fix, Array],
6014
- [
6015
- "",
6016
- "",
6017
- "",
6018
- "",
6019
- "",
6020
- "",
6021
- "",
6022
- "",
6023
- "",
6024
- "",
6025
- "",
6026
- ""
6027
- ]
6028
- ];
6029
- var [Fix] = [
6030
- 78,
6031
- () => [],
6032
- [
6033
- "",
6034
- "",
6035
- "",
6036
- "",
6037
- "",
6038
- "",
6039
- "",
6040
- "",
6041
- "",
6042
- "",
6043
- "",
6044
- "",
6045
- ""
6046
- ]
6047
- ];
6048
- var [Config] = [
6049
- 79,
6050
- (Rules) => [
6051
- Rule,
6052
- Array,
6053
- Rules,
6054
- ConfigObject,
6055
- Rules,
6056
- Plugin,
6057
- GlobalIgnore,
6058
- Array
6059
- ],
6060
- [
6061
- "",
6062
- "",
6063
- "",
6064
- "",
6065
- "",
6066
- "",
6067
- "",
6068
- "",
6069
- ""
6070
- ]
6071
- ];
6072
- var [Severity] = [
6073
- 80,
6074
- () => [],
6075
- []
6076
- ];
6077
- var [RuleNames] = [
6078
- 81,
6079
- (Rules) => [
6080
- Rule,
6081
- Array,
6082
- Rules
6083
- ],
6084
- [
6085
- "",
6086
- "",
6087
- "",
6088
- ""
6089
- ]
6090
- ];
6091
- var [LookUpByName] = [
6092
- 82,
6093
- (Union, Name) => [
6094
- Union,
6095
- Name,
6096
- Union
6097
- ],
6098
- [
6099
- "",
6100
- "",
6101
- "",
6102
- "",
6103
- "",
6104
- ""
6105
- ]
6106
- ];
6107
- var [OptionsForRule] = [
6108
- 83,
6109
- (Rules, RuleName) => [
6110
- Rule,
6111
- Array,
6112
- Rules,
6113
- RuleNames,
6114
- Rules,
6115
- RuleName,
6116
- LookUpByName,
6117
- Rule
6118
- ],
6119
- [
6120
- "",
6121
- "",
6122
- "",
6123
- "",
6124
- "",
6125
- "",
6126
- "",
6127
- "",
6128
- "",
6129
- "",
6130
- "",
6131
- ""
6132
- ]
6133
- ];
6134
- var [ConfigObject] = [
6135
- 84,
6136
- (Rules) => [
6137
- Rule,
6138
- Array,
6139
- Array,
6140
- Array,
6141
- Rules,
6142
- RuleNames,
6143
- Severity,
6144
- Severity,
6145
- Rules,
6146
- key,
6147
- OptionsForRule
6148
- ],
6149
- [
6150
- "",
6151
- "",
6152
- "",
6153
- "",
6154
- "",
6155
- "",
6156
- "",
6157
- "",
6158
- "",
6159
- "",
6160
- "",
6161
- "",
6162
- "",
6163
- "",
6164
- "",
6165
- ""
6166
- ]
6167
- ];
6168
- var [GlobalIgnore] = [
6169
- 85,
6170
- () => [Array],
6171
- ["", ""]
6172
- ];
6173
- var [Plugin] = [
6174
- 86,
6175
- (Context, Rules) => [
6176
- Context,
6177
- Rule,
6178
- Array,
6179
- Rule,
6180
- Array,
6181
- Rules
6182
- ],
6183
- [
6184
- "",
6185
- "",
6186
- "",
6187
- "",
6188
- "",
6189
- "",
6190
- "",
6191
- "",
6192
- "",
6193
- "",
6194
- "",
6195
- ""
6196
- ]
6197
- ];
6198
- var [defineConfig] = [
6199
- 96,
6200
- (Rules) => [
6201
- Rule,
6202
- Array,
6203
- Rule,
6204
- Array,
6205
- Rules,
6206
- Config,
6207
- Rules,
6208
- Config
6209
- ],
6210
- [
6211
- "",
6212
- "",
6213
- "",
6214
- "",
6215
- "",
6216
- "",
6217
- "",
6218
- "",
6219
- "",
6220
- ""
6221
- ]
6222
- ];
6223
- export { linter as n, processConfiguration as r, defineConfig as t };
5942
+ export { processConfiguration as n, linter as t };
6224
5943
 
6225
- //# sourceMappingURL=steiger-BX9S5pik.mjs.map
5944
+ //# sourceMappingURL=steiger-CbusAzht.mjs.map