@r_masseater/msch 0.110.0 → 0.111.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/dist/cli.mjs +13 -11
- package/dist/cli.mjs.map +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +4 -6
- package/dist/config.mjs.map +1 -1
- package/dist/decision-rules.d.mts +1 -1
- package/dist/decision-rules.mjs +1 -1
- package/dist/{define-lint-preset-Jiu7pMHB.mjs → define-lint-preset-BXnNnSR9.mjs} +44 -5
- package/dist/define-lint-preset-BXnNnSR9.mjs.map +1 -0
- package/dist/{index-Cg3RkK6V.d.mts → index-CAgQX_8m.d.mts} +18 -5
- package/dist/{index-BjHoDbVQ.d.mts → index-D12Kog_r.d.mts} +2 -3
- package/dist/lint-rules.mjs +111 -87
- package/dist/lint-rules.mjs.map +1 -1
- package/dist/lint.d.mts +2 -2
- package/dist/lint.mjs +1 -1
- package/dist/{published-DRs5iHkQ.mjs → published-BeHBqOVt.mjs} +4 -25
- package/dist/published-BeHBqOVt.mjs.map +1 -0
- package/dist/{repository-text-BZqpXNEe.mjs → repository-text-ClgnFGgv.mjs} +10 -9
- package/dist/repository-text-ClgnFGgv.mjs.map +1 -0
- package/dist/workspace-settings.d.mts +1 -1
- package/dist/workspace-settings.mjs +16 -3
- package/dist/workspace-settings.mjs.map +1 -1
- package/package.json +5 -3
- package/src/app/vite.d.ts +5 -0
- package/dist/define-lint-preset-Jiu7pMHB.mjs.map +0 -1
- package/dist/published-DRs5iHkQ.mjs.map +0 -1
- package/dist/repository-text-BZqpXNEe.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { i as nodeRepositoryFiles, n as NODE_MODULES, o as TOOL_NAME$1, r as RepositoryFiles, s as groupOf, t as MSCH_CACHE } from "./repository-files-DbZY3I_3.mjs";
|
|
3
3
|
import { $ as isIdentifier, A as uniqueByReference, B as getTextOfJSDocComment, C as moduleSpecifierOf, D as resolvedSymbol, E as referencedSymbols, F as SymbolFlags, G as isCallExpression, H as isArrowFunction, I as SyntaxKind, J as isEnumDeclaration, K as isClassDeclaration, L as getJSDocTags, M as IndexKind, N as InternalSymbolName, O as symbolAt, P as SignatureKind, Q as isFunctionExpression, R as getLeadingCommentRanges, S as moduleSpecifierLiteralOf, St as isVariableStatement, T as propertyNamesOf, U as isBinaryExpression, V as isArrayLiteralExpression, W as isBlock, X as isExpressionStatement, Y as isExportDeclaration, Z as isFunctionDeclaration, _ as isGenericDeclaration, _t as isTypeLiteralNode, a as problemAtPosition, at as isNumericLiteral, b as isTypeDeclaration, bt as isVariableDeclaration, c as carriesTag, ct as isPropertyAccessExpression, d as contains, dt as isSatisfiesExpression, et as isImportDeclaration, f as declarationsOf, ft as isSignatureDeclaration, g as isExternalDeclaration, gt as isTypeAliasDeclaration, h as importedModulesOf, ht as isStringLiteral, i as problemAt$6, it as isNewExpression, j as API, k as symbolAtLocation, l as childrenOf$3, lt as isPropertyAssignment, m as descendantsOf, mt as isSpreadElement, nt as isModuleBlock, o as problemInFile, ot as isObjectLiteralExpression, p as declaresAType, pt as isSourceFile, q as isElementAccessExpression, r as formatProblem, rt as isModuleDeclaration, s as sortProblems, st as isParenthesizedExpression, t as ProblemList, tt as isInterfaceDeclaration, u as columnOf, ut as isReturnStatement, v as isInsideAny, vt as isTypeReferenceNode, w as packageOf$1, x as lineOf$5, xt as isVariableDeclarationList, y as isOutsideDeclaration, yt as isUnionTypeNode, z as getNameOfDeclaration } from "./problem-BP2B-3M4.mjs";
|
|
4
|
-
import { B as
|
|
4
|
+
import { B as installedManifest, C as hasVerifyTask, F as literalOf, H as workspaceDependencies$1, I as nestedValues, L as propertyValue, M as KeySchema, N as childrenOf$4, P as keyName, R as stringsIn, S as definesTask, V as readManifest, _ as shadcnUiOf, a as workspaceConfigs, b as RUN_TASKS, c as publicEntriesOf, d as splitFrontmatter, h as deployEntries, i as publishedWorkspaces, j as workspaceConfigOf, l as isIndexSkill, m as bundledEntries, o as entryNameOf, p as workspaceLinks, r as packedWorkspaces, s as isBinEntry, u as FRONTMATTER, x as VERIFY_TASK, z as dependencyEntries } from "./published-BeHBqOVt.mjs";
|
|
5
5
|
import { a as workspaceManifest, i as workspaceProjects, n as unmatchedWorkspacePatterns, r as workspaceDirectories, t as publishedProjects } from "./workspace-projects-ycyXdQRo.mjs";
|
|
6
6
|
import { a as parent, i as join, n as isInside, t as baseName$1 } from "./path-DUttmo2s.mjs";
|
|
7
7
|
import { n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-BBdsNPSO.mjs";
|
|
8
|
-
import { a as MSCH_TASK_COMMANDS, d as namedWorkspaces, f as patternOf$1, l as isIgnored, n as
|
|
8
|
+
import { a as MSCH_TASK_COMMANDS, d as namedWorkspaces, f as patternOf$1, l as isIgnored, n as builtTextRuleNames, r as secretsOf, s as existsAt, t as TEXT_IGNORES } from "./repository-text-ClgnFGgv.mjs";
|
|
9
9
|
import { t as startedOnce } from "./started-once-muJbvD_I.mjs";
|
|
10
|
-
import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3,
|
|
10
|
+
import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, t as MARKDOWN_IGNORES, x as exempt } from "./define-lint-preset-BXnNnSR9.mjs";
|
|
11
11
|
import { builtinModules, isBuiltin } from "node:module";
|
|
12
12
|
import { VpToolsError, findCiDrift, runVpa } from "@r_masseater/vite-plus-adopt";
|
|
13
13
|
import { Array as Array$1, Boolean as Boolean$1, Clock, Config, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate, Record, Result, Runtime, Schedule, Schema, SchemaTransformation, Stdio, Stream, String as String$1, pipe } from "effect";
|
|
@@ -43,7 +43,7 @@ import { Base64 } from "effect/encoding";
|
|
|
43
43
|
import { dual } from "effect/Function";
|
|
44
44
|
// package.json
|
|
45
45
|
var name = "@r_masseater/msch";
|
|
46
|
-
var version = "0.
|
|
46
|
+
var version = "0.111.0";
|
|
47
47
|
var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
|
|
48
48
|
var repository = {
|
|
49
49
|
"type": "git",
|
|
@@ -14535,17 +14535,14 @@ const enabledRulesIn = Effect.fn("enabledRulesIn")(function* enabledRulesIn(root
|
|
|
14535
14535
|
});
|
|
14536
14536
|
/** @internal */
|
|
14537
14537
|
const expectationsIn = Effect.fn("expectationsIn")(function* expectationsIn(root) {
|
|
14538
|
-
const enabledRules = yield* enabledRulesIn(root);
|
|
14539
|
-
const published = yield* publishedArticlesIn(root);
|
|
14540
|
-
const drafts = yield* draftArticlesIn(root);
|
|
14541
14538
|
return {
|
|
14542
|
-
enabledRules,
|
|
14539
|
+
enabledRules: yield* enabledRulesIn(root),
|
|
14543
14540
|
text: {
|
|
14544
|
-
ignores:
|
|
14541
|
+
ignores: TEXT_IGNORES,
|
|
14545
14542
|
builtRuleNames: builtTextRuleNames
|
|
14546
14543
|
},
|
|
14547
14544
|
markdown: {
|
|
14548
|
-
ignores:
|
|
14545
|
+
ignores: MARKDOWN_IGNORES,
|
|
14549
14546
|
rules: MARKDOWN_RULES
|
|
14550
14547
|
},
|
|
14551
14548
|
tasks: MSCH_TASK_COMMANDS,
|
|
@@ -14617,8 +14614,13 @@ const textRuleWeakenings = (expected) => (owner, rules) => [...pipe(expected.bui
|
|
|
14617
14614
|
anchor: name,
|
|
14618
14615
|
message: `${owner} turns off ${name} or one of its rules. Rules are not turned off in a repository that uses msch: rewrite the text, or fix the rule in msch.`
|
|
14619
14616
|
})))];
|
|
14617
|
+
const checkedBySources = (section) => pipe(listOf$2(section["sources"]), Array$1.flatMap((source) => listOf$2(sectionOf(source)["files"])));
|
|
14618
|
+
const ignoredOutsideSources = (section) => {
|
|
14619
|
+
const checked = checkedBySources(section);
|
|
14620
|
+
return pipe(listOf$2(section["ignores"]), Array$1.filter((ignored) => !Array$1.contains(checked, ignored)));
|
|
14621
|
+
};
|
|
14620
14622
|
const textWeakenings = (expected) => whenPresent("textlint section, so the Japanese text checks do not run", (section) => [
|
|
14621
|
-
...unless(Equal.equals(section
|
|
14623
|
+
...unless(Equal.equals(ignoredOutsideSources(section), expected.ignores), {
|
|
14622
14624
|
anchor: "ignores",
|
|
14623
14625
|
message: "textlint.ignores differs from the files msch exempts. Files are not taken out of the text checks in a repository that uses msch."
|
|
14624
14626
|
}),
|