@r_masseater/vite-plus-adopt 0.23.0 → 0.23.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/attw.mjs +8 -18
- package/dist/attw.mjs.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{vpa-CTEUbof9.mjs → vpa-BJdZ0wwc.mjs} +7 -11
- package/dist/vpa-BJdZ0wwc.mjs.map +1 -0
- package/package.json +3 -3
- package/dist/vpa-CTEUbof9.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as runVpa } from "./vpa-
|
|
2
|
+
import { t as runVpa } from "./vpa-BJdZ0wwc.mjs";
|
|
3
3
|
import { Effect, Path, Stdio } from "effect";
|
|
4
|
-
import { runMain } from "@r_masseater/node-main";
|
|
4
|
+
import { runMain } from "@r_masseater/masseater-utils/node-main";
|
|
5
5
|
// src/app/run-cli.ts
|
|
6
6
|
/** @internal */
|
|
7
7
|
const runCli = (program) => {
|
package/dist/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":[],"sources":["../src/app/run-cli.ts","../src/app/cli.ts"],"sourcesContent":["import { runMain } from \"@r_masseater/node-main\";\nimport type { Effect } from \"effect\";\n\nimport type { CommandServices } from \"#/shared/lib/command.ts\";\n\n/** @internal */\nexport const runCli = <Failure>(program: Effect.Effect<void, Failure, CommandServices>): void => {\n runMain(\"vpa\")(program);\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":";;;;;;AAMA,MAAa,UAAmB,YAAiE;CAC/F,QAAQ,KAAK,CAAC,CAAC,OAAO;AACxB;;ACHA,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"}
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":[],"sources":["../src/app/run-cli.ts","../src/app/cli.ts"],"sourcesContent":["import { runMain } from \"@r_masseater/masseater-utils/node-main\";\nimport type { Effect } from \"effect\";\n\nimport type { CommandServices } from \"#/shared/lib/command.ts\";\n\n/** @internal */\nexport const runCli = <Failure>(program: Effect.Effect<void, Failure, CommandServices>): void => {\n runMain(\"vpa\")(program);\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":";;;;;;AAMA,MAAa,UAAmB,YAAiE;CAC/F,QAAQ,KAAK,CAAC,CAAC,OAAO;AACxB;;ACHA,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
|
@@ -3,6 +3,7 @@ import { ChildProcessSpawner } from "effect/process";
|
|
|
3
3
|
import { TextlintRcConfig } from "@textlint/config-loader";
|
|
4
4
|
import { TextlintKernelFilterRule, TextlintKernelRule } from "@textlint/kernel";
|
|
5
5
|
import { H56mConfig } from "@r_masseater/h56m";
|
|
6
|
+
import { DependencySection } from "@r_masseater/masseater-utils/kestrion";
|
|
6
7
|
import { UserConfig } from "@commitlint/types";
|
|
7
8
|
declare const VpToolsError_base: Schema.Class<VpToolsError, Schema.TaggedStruct<"VpToolsError", {
|
|
8
9
|
readonly kind: Schema.Literals<readonly ["config-missing", "tool-failed", "checks-failed"]>;
|
|
@@ -11,9 +12,8 @@ declare const VpToolsError_base: Schema.Class<VpToolsError, Schema.TaggedStruct<
|
|
|
11
12
|
readonly brand: unique symbol;
|
|
12
13
|
}>;
|
|
13
14
|
export declare class VpToolsError extends VpToolsError_base {}
|
|
14
|
-
declare const DEPENDENCY_FIELDS: readonly ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"];
|
|
15
15
|
/** @internal */
|
|
16
|
-
type DependencyField =
|
|
16
|
+
type DependencyField = DependencySection;
|
|
17
17
|
declare const SkillsSectionSchema: Schema.$Record<Schema.Union<readonly [Schema.String, Schema.String]>, Schema.Union<readonly [Schema.Struct<{
|
|
18
18
|
readonly commit: Schema.String;
|
|
19
19
|
readonly root: Schema.optional<Schema.String>;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as VpToolsError, n as findCiDrift, r as loadViteConfig, t as runVpa } from "./vpa-
|
|
1
|
+
export { i as VpToolsError, n as findCiDrift, r as loadViteConfig, t as runVpa } from "./vpa-BJdZ0wwc.mjs";
|
|
@@ -17,6 +17,7 @@ import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/http";
|
|
|
17
17
|
import { minimatch } from "minimatch";
|
|
18
18
|
import { Tar } from "effect/encoding";
|
|
19
19
|
import { findWorkspaceProjectsNoCheck } from "@pnpm/workspace.projects-reader";
|
|
20
|
+
import { DEPENDENCY_SECTIONS } from "@r_masseater/masseater-utils/kestrion";
|
|
20
21
|
import { intersects, valid, validRange } from "semver";
|
|
21
22
|
// src/shared/lib/errors.ts
|
|
22
23
|
const taggedError = Schema.TaggedError;
|
|
@@ -404,10 +405,11 @@ const fieldOf = (key) => (node) => pipe(Option.liftPredicate(node, isMap), Optio
|
|
|
404
405
|
const usesOf = fieldOf("uses");
|
|
405
406
|
/** @internal */
|
|
406
407
|
const lineStart = ({ source, offset }) => pipe(source, String$1.slice(FIRST$1, offset), String$1.lastIndexOf(NEWLINE$1), Option.map((index) => index + NEXT$1), Option.getOrElse(() => FIRST$1));
|
|
408
|
+
const rangeOf$1 = (node) => pipe(Option.liftPredicate(node, isMap), Option.flatMapNullishOr(({ range }) => range));
|
|
407
409
|
/** @internal */
|
|
408
|
-
const startOf = (node) => pipe(
|
|
410
|
+
const startOf = (node) => pipe(rangeOf$1(node), Option.map(([start]) => start));
|
|
409
411
|
/** @internal */
|
|
410
|
-
const endOf = (node) => pipe(
|
|
412
|
+
const endOf = (node) => pipe(rangeOf$1(node), Option.map((range) => range[RANGE_END]));
|
|
411
413
|
const insertAt = (text) => ({ start, end, text: insert }) => pipe(text, String$1.slice(FIRST$1, start)) + insert + pipe(text, String$1.slice(end));
|
|
412
414
|
/** @internal */
|
|
413
415
|
const applyEdits = ({ source, edits }) => pipe(Array.sort(edits, ByStartDescending), Array.match({
|
|
@@ -888,7 +890,7 @@ const syncCi = (root) => planned(root).pipe(Effect.flatMap(({ changes }) => Effe
|
|
|
888
890
|
})));
|
|
889
891
|
// package.json
|
|
890
892
|
var name = "@r_masseater/vite-plus-adopt";
|
|
891
|
-
var version = "0.23.
|
|
893
|
+
var version = "0.23.2";
|
|
892
894
|
// src/features/sync-ci/model/installed-version.ts
|
|
893
895
|
const RANGE_PREFIX = /^[\^~]/u;
|
|
894
896
|
const pnpm$1 = attempt("pnpm");
|
|
@@ -1637,17 +1639,11 @@ const HOOKS = {
|
|
|
1637
1639
|
"--pre-push": checkPushedRefs
|
|
1638
1640
|
};
|
|
1639
1641
|
// src/shared/lib/workspace.ts
|
|
1640
|
-
const DEPENDENCY_FIELDS = [
|
|
1641
|
-
"dependencies",
|
|
1642
|
-
"devDependencies",
|
|
1643
|
-
"optionalDependencies",
|
|
1644
|
-
"peerDependencies"
|
|
1645
|
-
];
|
|
1646
1642
|
const MANIFEST_FILE = "package.json";
|
|
1647
1643
|
const pnpm = attempt("pnpm");
|
|
1648
1644
|
const byFile = Order.mapInput(String$1.Order, ({ file }) => file);
|
|
1649
1645
|
const manifestIn = (directory) => pipe(Option.liftPredicate(directory, String$1.isNonEmpty), Option.map((own) => `${own}/${MANIFEST_FILE}`), Option.getOrElse(() => MANIFEST_FILE));
|
|
1650
|
-
const dependenciesIn = (file, declared) => pipe(
|
|
1646
|
+
const dependenciesIn = (file, declared) => pipe(DEPENDENCY_SECTIONS, Array.flatMap((field) => {
|
|
1651
1647
|
const entries = Record.toEntries(Option.getOrElse(Option.fromUndefinedOr(declared[field]), () => ({})));
|
|
1652
1648
|
return pipe(entries, Array.map(([name, specifier]) => ({
|
|
1653
1649
|
manifest: file,
|
|
@@ -1893,4 +1889,4 @@ const runVpa = Function.dual(2, (root, args) => pipe(args, Array.match({
|
|
|
1893
1889
|
})));
|
|
1894
1890
|
export { VpToolsError as i, findCiDrift as n, loadViteConfig as r, runVpa as t };
|
|
1895
1891
|
|
|
1896
|
-
//# sourceMappingURL=vpa-
|
|
1892
|
+
//# sourceMappingURL=vpa-BJdZ0wwc.mjs.map
|