rulesync 7.27.1 → 7.28.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/index.js CHANGED
@@ -71,7 +71,7 @@ import {
71
71
  stringifyFrontmatter,
72
72
  toPosixPath,
73
73
  writeFileContent
74
- } from "../chunk-CJXBVA4E.js";
74
+ } from "../chunk-AKHOQKVV.js";
75
75
 
76
76
  // src/cli/index.ts
77
77
  import { Command } from "commander";
@@ -1115,6 +1115,16 @@ async function generateCommand(logger5, options) {
1115
1115
  logger5.captureData("hasDiff", result.hasDiff);
1116
1116
  logger5.captureData("skills", result.skills ?? []);
1117
1117
  }
1118
+ if (check) {
1119
+ if (result.hasDiff) {
1120
+ throw new CLIError(
1121
+ "Files are not up to date. Run 'rulesync generate' to update.",
1122
+ ErrorCodes.GENERATION_FAILED
1123
+ );
1124
+ }
1125
+ logger5.success("\u2713 All files are up to date.");
1126
+ return;
1127
+ }
1118
1128
  if (totalGenerated === 0) {
1119
1129
  const enabledFeatures = features.join(", ");
1120
1130
  logger5.info(`\u2713 All files are up to date (${enabledFeatures})`);
@@ -1133,16 +1143,6 @@ async function generateCommand(logger5, options) {
1133
1143
  } else {
1134
1144
  logger5.success(`\u{1F389} All done! Written ${totalGenerated} file(s) total (${parts.join(" + ")})`);
1135
1145
  }
1136
- if (check) {
1137
- if (result.hasDiff) {
1138
- throw new CLIError(
1139
- "Files are not up to date. Run 'rulesync generate' to update.",
1140
- ErrorCodes.GENERATION_FAILED
1141
- );
1142
- } else {
1143
- logger5.success("\u2713 All files are up to date.");
1144
- }
1145
- }
1146
1146
  }
1147
1147
 
1148
1148
  // src/cli/commands/gitignore.ts
@@ -1204,6 +1204,7 @@ var GITIGNORE_ENTRY_REGISTRY = [
1204
1204
  { target: "codexcli", feature: "subagents", entry: "**/.codex/agents/" },
1205
1205
  { target: "codexcli", feature: "general", entry: "**/.codex/memories/" },
1206
1206
  { target: "codexcli", feature: "general", entry: "**/.codex/config.toml" },
1207
+ { target: "codexcli", feature: "hooks", entry: "**/.codex/hooks.json" },
1207
1208
  // Cursor
1208
1209
  { target: "cursor", feature: "rules", entry: "**/.cursor/" },
1209
1210
  { target: "cursor", feature: "ignore", entry: "**/.cursorignore" },
@@ -4460,7 +4461,7 @@ function wrapCommand({
4460
4461
  }
4461
4462
 
4462
4463
  // src/cli/index.ts
4463
- var getVersion = () => "7.27.1";
4464
+ var getVersion = () => "7.28.0";
4464
4465
  function wrapCommand2(name, errorCode, handler) {
4465
4466
  return wrapCommand({ name, errorCode, handler, getVersion });
4466
4467
  }