pasika 0.7.3 → 0.7.4

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.
@@ -6326,6 +6326,14 @@ var nextjsPackageJsonRules = {
6326
6326
  // eslint/rules/husky/husky-hook.ts
6327
6327
  import { existsSync as existsSync5, readFileSync as readFileSync10 } from "fs";
6328
6328
  import path48 from "path";
6329
+ var VITEST_CONFIG_NAMES2 = [
6330
+ "vitest.config.ts",
6331
+ "vitest.config.mts",
6332
+ "vitest.config.cts",
6333
+ "vitest.config.js",
6334
+ "vitest.config.mjs",
6335
+ "vitest.config.cjs"
6336
+ ];
6329
6337
  function memberName6(member) {
6330
6338
  return member.name.type === "String" ? member.name.value : member.name.name;
6331
6339
  }
@@ -6334,7 +6342,7 @@ var huskyHookRule = {
6334
6342
  schema: [],
6335
6343
  type: "problem",
6336
6344
  docs: {
6337
- description: "Require a pre-commit hook that runs lint-staged and the libyear drift check directly, and the typecheck and suppression-file ratchet through named package.json scripts."
6345
+ description: "Require a pre-commit hook that runs lint-staged, typecheck, coverage with local threshold staging, suppression pruning when applicable, and the libyear drift check."
6338
6346
  }
6339
6347
  },
6340
6348
  create(context) {
@@ -6366,6 +6374,18 @@ var huskyHookRule = {
6366
6374
  context.report({ node, message: ".husky/pre-commit must run lint-staged." });
6367
6375
  }
6368
6376
  requireNamedScript("typecheck");
6377
+ requireNamedScript("test:unit:coverage");
6378
+ const vitestConfigName = VITEST_CONFIG_NAMES2.find((name) => existsSync5(path48.join(context.cwd, name)));
6379
+ if (vitestConfigName !== void 0) {
6380
+ const coverageIndex = content.indexOf("npm run test:unit:coverage");
6381
+ const localAddIndex = content.indexOf(`git add ${vitestConfigName}`);
6382
+ if (localAddIndex <= coverageIndex) {
6383
+ context.report({
6384
+ node,
6385
+ message: `.husky/pre-commit must stage an auto-updated ${vitestConfigName} after coverage.`
6386
+ });
6387
+ }
6388
+ }
6369
6389
  if (!content.includes("libyear --limit-major-individual=1")) {
6370
6390
  context.report({ node, message: ".husky/pre-commit must run npx libyear --limit-major-individual=1." });
6371
6391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",