@r_masseater/msch 0.128.0 → 0.129.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.
- package/dist/cli.mjs +14 -4
- package/dist/cli.mjs.map +1 -1
- package/dist/config.d.mts +7 -3
- package/dist/config.mjs +1 -1
- package/dist/{repository-config-DGEG2Ew6.mjs → repository-config-BdFUhbP3.mjs} +25 -7
- package/dist/repository-config-BdFUhbP3.mjs.map +1 -0
- package/package.json +4 -3
- package/skills/msch-checks/SKILL.md +1 -1
- package/skills/msch-publishing/SKILL.md +1 -1
- package/skills/msch-repository-config/SKILL.md +2 -1
- package/skills/msch-workspace-settings/SKILL.md +1 -1
- package/dist/repository-config-DGEG2Ew6.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Array as Array$1, Boolean as Boolean$1, Clock, Config as Config$1, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate as Predicate$1, Record, Redacted, Result, Runtime, Schedule, Schema, SchemaTransformation, Semaphore, Stdio, Stream, String as String$1, pipe } from "effect";
|
|
2
|
+
import { Array as Array$1, Boolean as Boolean$1, Clock, Config as Config$1, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate as Predicate$1, Record, Redacted, Result, Runtime, Schedule, Schema, SchemaTransformation, Semaphore, Stdio, Stream, String as String$1, Struct, pipe } from "effect";
|
|
3
3
|
import { Argument, Command, Flag } from "effect/cli";
|
|
4
4
|
import { i as nodeRepositoryFiles, n as NODE_MODULES$2, o as TOOL_NAME$1, r as RepositoryFiles, s as groupOf, t as MSCH_CACHE } from "./repository-files-C_GzAnYp.mjs";
|
|
5
5
|
import { hookFlags } from "@r_masseater/masseater-utils/hook-flags";
|
|
@@ -14,7 +14,7 @@ import { decodePackageJson, decodeVersionedPackageJson, readPackageJson, readRaw
|
|
|
14
14
|
import { a as workspaceConfigs, c as publicEntriesOf, d as FRONTMATTER, f as splitFrontmatter, g as deployEntries, h as bundledEntries$1, i as publishedWorkspaces, l as modDirectories, m as workspaceLinks, o as entryNameOf, r as packedWorkspaces, s as isBinEntry, u as INDEX_SKILL, v as shadcnUiOf } from "./published-BbAu-6IS.mjs";
|
|
15
15
|
import { parse, resolveConfigFromFile } from "vite-plus";
|
|
16
16
|
import { i as USAGE_SPOOL, n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-B3SYjao5.mjs";
|
|
17
|
-
import { _ as
|
|
17
|
+
import { _ as existsAt, a as builtTextRuleNames, b as patternOf$1, c as GIT_HOOKS, d as meteredCommand, f as MDLCT_BIN, g as fu4Of, h as SUBJECT_SCRIPT, i as TEXT_IGNORES, l as MSCH_TASK_COMMANDS, m as COMMIT_LINT, n as STAGED$1, o as secretsOf, s as CI_TASKS, t as FORMAT, u as MSCH_VERIFY_COMMANDS, v as isIgnored, y as namedWorkspaces } from "./repository-config-BdFUhbP3.mjs";
|
|
18
18
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
19
19
|
import treeSitter from "@vscode/tree-sitter-wasm";
|
|
20
20
|
import { t as startedOnce } from "./started-once-BN_hLlmU.mjs";
|
|
@@ -49,7 +49,7 @@ import { Buffer } from "node:buffer";
|
|
|
49
49
|
import { createZstdDecompress } from "node:zlib";
|
|
50
50
|
// package.json
|
|
51
51
|
var name = "@r_masseater/msch";
|
|
52
|
-
var version = "0.
|
|
52
|
+
var version = "0.129.1";
|
|
53
53
|
var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
|
|
54
54
|
var repository = {
|
|
55
55
|
"type": "git",
|
|
@@ -14815,7 +14815,17 @@ const isSection = (value) => Predicate$1.isObject(value) && !Array$1.isArray(val
|
|
|
14815
14815
|
const sectionOf = (value) => pipe(Option.some(value), Option.filter(isSection), Option.getOrElse(() => ({})));
|
|
14816
14816
|
const listOf$2 = (value) => pipe(Option.some(value), Option.filter(isList), Option.getOrElse(() => []));
|
|
14817
14817
|
// src/app/section-weakenings.ts
|
|
14818
|
-
const
|
|
14818
|
+
const withoutOptedRules = (section, value) => {
|
|
14819
|
+
if (section !== "commitlint") return value;
|
|
14820
|
+
const commitlint = sectionOf(value);
|
|
14821
|
+
const rules = Struct.omit(sectionOf(commitlint["rules"]), [SUBJECT_SCRIPT]);
|
|
14822
|
+
if (Record.isEmptyRecord(rules)) return Struct.omit(commitlint, ["rules"]);
|
|
14823
|
+
return {
|
|
14824
|
+
...commitlint,
|
|
14825
|
+
rules
|
|
14826
|
+
};
|
|
14827
|
+
};
|
|
14828
|
+
const fixedWeakenings = (config, expected) => pipe(Record.toEntries(expected.fixed), Array$1.filter(([section, built]) => !Equal.equals(withoutOptedRules(section, config[section]), built)), Array$1.map(([section]) => ({
|
|
14819
14829
|
anchor: section,
|
|
14820
14830
|
message: `${section} differs from what repositoryConfig builds, so msch's ${section} settings do not apply. Leave the ${section} section as repositoryConfig builds it.`
|
|
14821
14831
|
})));
|