@r_masseater/msch 0.73.0 → 0.75.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/changed.mjs +1 -1
- package/dist/cli.mjs +19 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/exits.mjs +1 -1
- package/dist/publish.mjs +1 -1
- package/dist/published.mjs +1 -1
- package/dist/refs.mjs +1 -1
- package/dist/{runtime-Q9CzisOt.mjs → runtime-CFZ41rB0.mjs} +9 -2
- package/dist/runtime-CFZ41rB0.mjs.map +1 -0
- package/dist/wake.mjs +1 -1
- package/package.json +7 -5
- package/dist/runtime-Q9CzisOt.mjs.map +0 -1
package/dist/changed.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as ProblemsFound } from "./output-DrM4OsOJ.mjs";
|
|
3
|
-
import { t as runCli } from "./runtime-
|
|
3
|
+
import { t as runCli } from "./runtime-CFZ41rB0.mjs";
|
|
4
4
|
import { i as installedPackages, n as keepOnly, r as recordsIn, s as workspaceClosure } from "./pass-records-DylVXWk1.mjs";
|
|
5
5
|
import { n as RepositoryFiles, t as NODE_MODULES } from "./repository-files-C2gVviac.mjs";
|
|
6
6
|
import { o as workspaceDirectories } from "./dependencies-BAjtDvY4.mjs";
|
package/dist/cli.mjs
CHANGED
|
@@ -12,10 +12,10 @@ import { n as readTree, t as loadLanguage } from "./tree-sitter-BfzHNwTR.mjs";
|
|
|
12
12
|
import { $ as isPropertyAccessExpression, A as getNameOfDeclaration, B as isExportDeclaration, D as SyntaxKind, E as SymbolFlags, F as isBlock, G as isImportDeclaration, H as isFunctionDeclaration, I as isCallExpression, J as isModuleDeclaration, K as isInterfaceDeclaration, L as isClassDeclaration, M as isArrayLiteralExpression, N as isArrowFunction, O as getJSDocTags, P as isBinaryExpression, Q as isParenthesizedExpression, R as isElementAccessExpression, T as SignatureKind, U as isFunctionExpression, V as isExpressionStatement, W as isIdentifier, X as isNumericLiteral, Y as isNewExpression, Z as isObjectLiteralExpression, _ as referencedSymbols, a as declarationsOf, at as isSpreadElement, b as symbolAtLocation, c as importedModulesOf, ct as isTypeLiteralNode, d as isInsideAny, dt as isVariableDeclaration, et as isPropertyAssignment, f as isOutsideDeclaration, ft as isVariableDeclarationList, g as propertyNamesOf, h as packageOf$1, i as contains, it as isSourceFile, j as getTextOfJSDocComment, l as isExternalDeclaration, lt as isTypeReferenceNode, m as lineOf$3, n as childrenOf$2, nt as isSatisfiesExpression, o as declaresAType, ot as isStringLiteral, p as isTypeDeclaration, pt as isVariableStatement, q as isModuleBlock, r as columnOf, rt as isSignatureDeclaration, s as descendantsOf, st as isTypeAliasDeclaration, t as carriesTag, tt as isReturnStatement, u as isGenericDeclaration, ut as isUnionTypeNode, x as uniqueByReference, y as symbolAt, z as isEnumDeclaration } from "./syntax-Dx4HQIK-.mjs";
|
|
13
13
|
import { a as manifestPattern, c as offsetIn$1, i as fieldsOf, l as quoted$2, n as baseName$1, o as manifestSpecifiers, r as baseRevision, s as namedCatalogsOf, t as manifestTexts, u as specifiedIn } from "./manifest-texts-CfnH7ifu.mjs";
|
|
14
14
|
import { n as writeStdout, t as ProblemsFound } from "./output-DrM4OsOJ.mjs";
|
|
15
|
-
import { t as runCli } from "./runtime-
|
|
15
|
+
import { t as runCli } from "./runtime-CFZ41rB0.mjs";
|
|
16
16
|
import "./cli-contract-D7btWrEu.mjs";
|
|
17
17
|
import { builtinModules } from "node:module";
|
|
18
|
-
import { VpToolsError, runVpa } from "@r_masseater/vite-plus-adopt";
|
|
18
|
+
import { VpToolsError, findCiDrift, runVpa } from "@r_masseater/vite-plus-adopt";
|
|
19
19
|
import { Array, Boolean as Boolean$1, Context, Effect, FileSystem, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate, Record, Result, Schema, SchemaTransformation, Stdio, Stream, String as String$1, pipe } from "effect";
|
|
20
20
|
import { lockedGraph, lockedPackageIds, parseDependencyPath, updateWorkspaceManifest } from "@r_masseater/kestrion/pnpm";
|
|
21
21
|
import { ChildProcess } from "effect/process";
|
|
@@ -13573,6 +13573,21 @@ const checkFullHistoryCheckout = workflowCheck({
|
|
|
13573
13573
|
matches: (value) => value === WHOLE_HISTORY
|
|
13574
13574
|
})
|
|
13575
13575
|
});
|
|
13576
|
+
// src/features/check-workflows/model/ci-drift.ts
|
|
13577
|
+
const SETUP_RULE$1 = "ci-setup";
|
|
13578
|
+
const REF_RULE = "ci-template-ref";
|
|
13579
|
+
const SETUP_MESSAGE = "differs from what `vpa ci` writes. Run `vpa ci`: it puts the shared `setup` action where a job runs `vp`, removes the hand-written cache steps and keeps the cache workflow that cleans up old entries.";
|
|
13580
|
+
const REF_MESSAGE = "pins a different commit of the template than the other workflows. Run `vpa ci` to pin them all to one.";
|
|
13581
|
+
const setupProblem$1 = problemInFile(SETUP_RULE$1);
|
|
13582
|
+
const refProblem = problemInFile(REF_RULE);
|
|
13583
|
+
/** @internal */
|
|
13584
|
+
const checkCiDrift = Effect.fn("checkCiDrift")(function* checkCiDrift(root) {
|
|
13585
|
+
const drifts = yield* findCiDrift(root);
|
|
13586
|
+
return pipe(drifts, Array.map(({ file, reason }) => {
|
|
13587
|
+
if (reason === "setup") return setupProblem$1(file, SETUP_MESSAGE);
|
|
13588
|
+
return refProblem(file, REF_MESSAGE);
|
|
13589
|
+
}));
|
|
13590
|
+
});
|
|
13576
13591
|
// src/features/check-workflows/model/publish-trigger.ts
|
|
13577
13592
|
const RULE$23 = "publish-trigger";
|
|
13578
13593
|
const PUBLISH = /\bmsch-publish\s+(?:plan|npm|release)\b/u;
|
|
@@ -13672,6 +13687,7 @@ const checkToolUse = Effect.fn("checkToolUse")(function* checkToolUse(root) {
|
|
|
13672
13687
|
checkScripts(root),
|
|
13673
13688
|
checkWorkflowQueues(root),
|
|
13674
13689
|
checkWorkflowCommits(root),
|
|
13690
|
+
checkCiDrift(root),
|
|
13675
13691
|
checkFullHistoryCheckout(root),
|
|
13676
13692
|
checkReleasePlease(root),
|
|
13677
13693
|
checkPublishTrigger(root),
|
|
@@ -14683,7 +14699,7 @@ const installedPackage = Effect.fn("installedPackage")(function* installedPackag
|
|
|
14683
14699
|
});
|
|
14684
14700
|
const appliedByMsch = Effect.fn("appliedByMsch")(function* appliedByMsch() {
|
|
14685
14701
|
const manifest = yield* installedManifest(MSCH);
|
|
14686
|
-
const names = pipe(manifest, Option.
|
|
14702
|
+
const names = pipe(manifest, Option.map(({ dependencies, peerDependencies }) => [...Record.keys(dependencies ?? {}), ...Record.keys(peerDependencies ?? {})]), Option.getOrElse(() => []), Array.filter(String$1.startsWith(SCOPE$1)));
|
|
14687
14703
|
return yield* Effect.forEach(names, installedPackage, { concurrency: 1 });
|
|
14688
14704
|
});
|
|
14689
14705
|
const problemAt$1 = (file, source) => (index, name) => ({
|