@r_masseater/vite-plus-adopt 0.11.0 → 0.12.0
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 +10 -31
- package/THIRD-PARTY-NOTICES +0 -251
- package/dist/attw.mjs +9 -16
- package/dist/attw.mjs.map +1 -1
- package/dist/cli.mjs +21 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +61 -2
- package/dist/index.mjs +1 -3
- package/dist/{vpa--jth0aBQ.mjs → vpa-CvCOW4oL.mjs} +154 -184
- package/dist/vpa-CvCOW4oL.mjs.map +1 -0
- package/package.json +33 -68
- package/skills/configure-checks/SKILL.md +15 -27
- package/dist/fsd.d.mts +0 -10
- package/dist/fsd.mjs +0 -1338
- package/dist/fsd.mjs.map +0 -1
- package/dist/index-HXyQUvp_.d.mts +0 -202
- package/dist/output-CeQIa6e5.mjs +0 -223
- package/dist/output-CeQIa6e5.mjs.map +0 -1
- package/dist/parsers/tree-sitter-astro.wasm +0 -0
- package/dist/parsers/tree-sitter-svelte.wasm +0 -0
- package/dist/parsers/tree-sitter-tsx.wasm +0 -0
- package/dist/parsers/tree-sitter-vue.wasm +0 -0
- package/dist/postinstall.d.mts +0 -1
- package/dist/postinstall.mjs +0 -19
- package/dist/postinstall.mjs.map +0 -1
- package/dist/run-cli-DIrqPoTy.mjs +0 -24
- package/dist/run-cli-DIrqPoTy.mjs.map +0 -1
- package/dist/steiger-CbusAzht.mjs +0 -5944
- package/dist/steiger-CbusAzht.mjs.map +0 -1
- package/dist/vpa--jth0aBQ.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { i as VpToolsError, n as writeTo, t as runVpa } from "./vpa-CvCOW4oL.mjs";
|
|
3
|
+
import { Cause, Effect, Layer, Option, Path, Schema, Stdio, pipe } from "effect";
|
|
4
|
+
import { runMain } from "@effect/platform-node-shared/NodeRuntime";
|
|
5
|
+
import { NodeChildProcessSpawner, NodeFileSystem, NodePath, NodeStdio } from "@effect/platform-node-shared";
|
|
6
|
+
// src/shared/lib/node-services.ts
|
|
7
|
+
/** @internal */
|
|
8
|
+
const nodeServicesLayer = Layer.provideMerge(NodeChildProcessSpawner.layer, Layer.mergeAll(NodeFileSystem.layer, NodePath.layer, NodeStdio.layer));
|
|
9
|
+
// src/app/run-cli.ts
|
|
10
|
+
const reportFailure = (cause) => {
|
|
11
|
+
const message = pipe(Cause.findErrorOption(cause), Option.filter(Schema.is(VpToolsError)), Option.match({
|
|
12
|
+
onNone: () => Cause.pretty(cause),
|
|
13
|
+
onSome: (error) => error.message
|
|
14
|
+
}));
|
|
15
|
+
return writeTo("stderr", `${message}\n`);
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
const runCli = (program) => {
|
|
19
|
+
const reported = program.pipe(Effect.tapCause(reportFailure));
|
|
20
|
+
const main = Layer.build(nodeServicesLayer).pipe(Effect.flatMap((services) => Effect.provideContext(reported, services)), Effect.scoped);
|
|
21
|
+
runMain(main, { disableErrorReporting: true });
|
|
22
|
+
};
|
|
5
23
|
// src/app/cli.ts
|
|
6
24
|
runCli(Effect.gen(function* main() {
|
|
7
25
|
const stdio = yield* Stdio.Stdio;
|
package/dist/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":[],"sources":["../src/app/cli.ts"],"sourcesContent":["import { Effect, Path, Stdio } from \"effect\";\n\nimport { runCli } from \"./run-cli.ts\";\nimport { runVpa } from \"./vpa.ts\";\n\nrunCli(\n Effect.gen(function* main() {\n const stdio = yield* Stdio.Stdio;\n const path = yield* Path.Path;\n const args = yield* stdio.args;\n return yield* runVpa(path.resolve(\".\"), args);\n }),\n);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":[],"sources":["../src/shared/lib/node-services.ts","../src/app/run-cli.ts","../src/app/cli.ts"],"sourcesContent":["import {\n NodeChildProcessSpawner,\n NodeFileSystem,\n NodePath,\n NodeStdio,\n} from \"@effect/platform-node-shared\";\nimport { Layer } from \"effect\";\n\n/** @internal */\nexport const nodeServicesLayer = Layer.provideMerge(\n NodeChildProcessSpawner.layer,\n Layer.mergeAll(NodeFileSystem.layer, NodePath.layer, NodeStdio.layer),\n);\n","import { runMain } from \"@effect/platform-node-shared/NodeRuntime\";\nimport { Cause, Effect, Layer, Option, Schema, pipe } from \"effect\";\nimport type { Stdio } from \"effect\";\n\nimport type { CommandServices } from \"#/shared/lib/command.ts\";\nimport { VpToolsError } from \"#/shared/lib/errors.ts\";\nimport { nodeServicesLayer } from \"#/shared/lib/node-services.ts\";\nimport { writeTo } from \"#/shared/lib/output.ts\";\n\nconst reportFailure = <Failure>(\n cause: Cause.Cause<Failure>,\n): Effect.Effect<void, never, Stdio.Stdio> => {\n const message = pipe(\n Cause.findErrorOption(cause),\n Option.filter(Schema.is(VpToolsError)),\n Option.match({\n onNone: () => Cause.pretty(cause),\n onSome: (error) => error.message,\n }),\n );\n return writeTo(\"stderr\", `${message}\\n`);\n};\n\n/** @internal */\nexport const runCli = <Failure>(program: Effect.Effect<void, Failure, CommandServices>): void => {\n const reported = program.pipe(Effect.tapCause(reportFailure));\n const main = Layer.build(nodeServicesLayer).pipe(\n Effect.flatMap((services) => Effect.provideContext(reported, services)),\n Effect.scoped,\n );\n runMain(main, { disableErrorReporting: true });\n};\n","import { Effect, Path, Stdio } from \"effect\";\n\nimport { runCli } from \"./run-cli.ts\";\nimport { runVpa } from \"./vpa.ts\";\n\nrunCli(\n Effect.gen(function* main() {\n const stdio = yield* Stdio.Stdio;\n const path = yield* Path.Path;\n const args = yield* stdio.args;\n return yield* runVpa(path.resolve(\".\"), args);\n }),\n);\n"],"mappings":";;;;;;;AASA,MAAa,oBAAoB,MAAM,aACrC,wBAAwB,OACxB,MAAM,SAAS,eAAe,OAAO,SAAS,OAAO,UAAU,KAAK,CACtE;;ACHA,MAAM,iBACJ,UAC4C;CAC5C,MAAM,UAAU,KACd,MAAM,gBAAgB,KAAK,GAC3B,OAAO,OAAO,OAAO,GAAG,YAAY,CAAC,GACrC,OAAO,MAAM;EACX,cAAc,MAAM,OAAO,KAAK;EAChC,SAAS,UAAU,MAAM;CAC3B,CAAC,CACH;CACA,OAAO,QAAQ,UAAU,GAAG,QAAQ,GAAG;AACzC;;AAGA,MAAa,UAAmB,YAAiE;CAC/F,MAAM,WAAW,QAAQ,KAAK,OAAO,SAAS,aAAa,CAAC;CAC5D,MAAM,OAAO,MAAM,MAAM,iBAAiB,CAAC,CAAC,KAC1C,OAAO,SAAS,aAAa,OAAO,eAAe,UAAU,QAAQ,CAAC,GACtE,OAAO,MACT;CACA,QAAQ,MAAM,EAAE,uBAAuB,KAAK,CAAC;AAC/C;;AC1BA,OACE,OAAO,IAAI,UAAU,OAAO;CAC1B,MAAM,QAAQ,OAAO,MAAM;CAC3B,MAAM,OAAO,OAAO,KAAK;CACzB,MAAM,OAAO,OAAO,MAAM;CAC1B,OAAO,OAAO,OAAO,KAAK,QAAQ,GAAG,GAAG,IAAI;AAC9C,CAAC,CACH"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
|
-
import { a as FallowConfig, c as TextlintConfig, d as VpToolsError, i as DependencyRules, l as ToolSections, n as BetterleaksRule, o as SteigerConfig, r as CommitlintConfig, s as SteigerSection, t as BetterleaksConfig, u as SkillsSection } from "./index-HXyQUvp_.mjs";
|
|
2
1
|
import { Effect, FileSystem, Path, PlatformError, Schema, Stdio } from "effect";
|
|
3
2
|
import { ChildProcessSpawner } from "effect/process";
|
|
3
|
+
import { TextlintRcConfig } from "@textlint/config-loader";
|
|
4
|
+
import { TextlintKernelRule } from "@textlint/kernel";
|
|
5
|
+
import { H56mConfig } from "@r_masseater/h56m";
|
|
6
|
+
import { UserConfig } from "@commitlint/types";
|
|
7
|
+
declare const VpToolsError_base: Schema.Class<VpToolsError, Schema.TaggedStruct<"VpToolsError", {
|
|
8
|
+
readonly kind: Schema.Literals<readonly ["config-missing", "tool-failed", "checks-failed"]>;
|
|
9
|
+
readonly message: Schema.String;
|
|
10
|
+
}>, import("effect/Cause").YieldableError & {
|
|
11
|
+
readonly brand: unique symbol;
|
|
12
|
+
}>;
|
|
13
|
+
export declare class VpToolsError extends VpToolsError_base {}
|
|
14
|
+
declare const DEPENDENCY_FIELDS: readonly ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"];
|
|
15
|
+
/** @internal */
|
|
16
|
+
type DependencyField = (typeof DEPENDENCY_FIELDS)[number];
|
|
17
|
+
declare const SkillsSectionSchema: Schema.$Record<Schema.Union<readonly [Schema.String, Schema.String]>, Schema.Union<readonly [Schema.Struct<{
|
|
18
|
+
readonly commit: Schema.String;
|
|
19
|
+
readonly root: Schema.optional<Schema.String>;
|
|
20
|
+
readonly skills: Schema.Union<readonly [Schema.Literal<"all">, Schema.NonEmptyArray<Schema.String>]>;
|
|
21
|
+
}>, Schema.Struct<{
|
|
22
|
+
readonly skills: Schema.Union<readonly [Schema.Literal<"all">, Schema.NonEmptyArray<Schema.String>]>;
|
|
23
|
+
}>]>>;
|
|
24
|
+
type SkillsSection = typeof SkillsSectionSchema.Encoded;
|
|
25
|
+
interface CommitlintConfig extends Readonly<UserConfig> {}
|
|
26
|
+
type TextlintRuleOptions = NonNullable<TextlintKernelRule["options"]>;
|
|
27
|
+
interface TextlintPreset {
|
|
28
|
+
readonly rules: Readonly<Record<string, TextlintKernelRule["rule"]>>;
|
|
29
|
+
readonly rulesConfig: Readonly<Record<string, TextlintRuleOptions>>;
|
|
30
|
+
}
|
|
31
|
+
interface TextlintSource extends TextlintRcConfig {
|
|
32
|
+
readonly files: readonly string[];
|
|
33
|
+
}
|
|
34
|
+
interface TextlintConfig extends TextlintRcConfig {
|
|
35
|
+
readonly ignores?: readonly string[];
|
|
36
|
+
readonly presets?: Readonly<Record<string, TextlintPreset>>;
|
|
37
|
+
readonly sources?: readonly TextlintSource[];
|
|
38
|
+
}
|
|
39
|
+
type FallowConfig = Readonly<Record<string, unknown>>;
|
|
40
|
+
type ManifestField = DependencyField;
|
|
41
|
+
interface AllowedDependencies {
|
|
42
|
+
readonly workspaces: readonly string[];
|
|
43
|
+
readonly dependencies: readonly string[];
|
|
44
|
+
readonly fields?: readonly ManifestField[];
|
|
45
|
+
}
|
|
46
|
+
interface DependencyRules {
|
|
47
|
+
readonly allowed?: Readonly<Record<string, AllowedDependencies>>;
|
|
48
|
+
readonly banned?: Readonly<Record<string, readonly string[]>>;
|
|
49
|
+
readonly exactDependencies?: Readonly<Record<string, readonly string[]>>;
|
|
50
|
+
readonly peerRanges?: "identical" | "intersect";
|
|
51
|
+
}
|
|
52
|
+
interface ToolSections {
|
|
53
|
+
readonly commitlint?: CommitlintConfig;
|
|
54
|
+
readonly dependencyRules?: DependencyRules;
|
|
55
|
+
readonly fallow?: FallowConfig;
|
|
56
|
+
readonly h56m?: H56mConfig;
|
|
57
|
+
readonly skills?: SkillsSection;
|
|
58
|
+
readonly textlint?: TextlintConfig;
|
|
59
|
+
}
|
|
60
|
+
declare module "vite" {
|
|
61
|
+
interface UserConfig extends ToolSections {}
|
|
62
|
+
}
|
|
4
63
|
/** @internal */
|
|
5
64
|
type FileServices = FileSystem.FileSystem | Path.Path;
|
|
6
65
|
/** @internal */
|
|
@@ -16,5 +75,5 @@ export declare const runVpa: {
|
|
|
16
75
|
(args: readonly string[]): (root: string) => CommandEffect;
|
|
17
76
|
(root: string, args: readonly string[]): CommandEffect;
|
|
18
77
|
};
|
|
19
|
-
export
|
|
78
|
+
export type { CommitlintConfig, DependencyRules, FallowConfig, SkillsSection, TextlintConfig, ToolSections };
|
|
20
79
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED