@clipboard-health/ai-rules 0.2.7 → 0.2.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/sync.js +2 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clipboard-health/ai-rules",
3
3
  "description": "Pre-built AI agent rules for consistent coding standards.",
4
- "version": "0.2.7",
4
+ "version": "0.2.9",
5
5
  "bugs": "https://github.com/ClipboardHealth/core-utils/issues",
6
6
  "devDependencies": {
7
7
  "@intellectronica/ruler": "0.3.10"
package/scripts/sync.js CHANGED
@@ -7,9 +7,8 @@ const node_path_1 = require("node:path");
7
7
  const constants_1 = require("./constants");
8
8
  const toErrorMessage_1 = require("./toErrorMessage");
9
9
  const PATHS = {
10
- projectRoot: (0, node_path_1.join)(__dirname, "../../.."),
10
+ projectRoot: (0, node_path_1.join)(__dirname, "../../../.."),
11
11
  rules: (0, node_path_1.join)(__dirname, ".."),
12
- rulerDir: (0, node_path_1.join)(__dirname, "..", ".ruler"),
13
12
  };
14
13
  function getProfileFromArguments() {
15
14
  const profile = process.argv[2];
@@ -25,7 +24,7 @@ async function sync() {
25
24
  try {
26
25
  const profile = getProfileFromArguments();
27
26
  // Force copy files; rely on `git` if it overwrites files.
28
- await (0, promises_1.cp)((0, node_path_1.join)(PATHS.rulerDir, profile), PATHS.projectRoot, { recursive: true, force: true });
27
+ await (0, promises_1.cp)((0, node_path_1.join)(PATHS.rules, profile), PATHS.projectRoot, { recursive: true, force: true });
29
28
  console.log(`✅ @clipboard-health/ai-rules synced ${profile}`);
30
29
  }
31
30
  catch (error) {