aicm 0.6.3 → 0.6.5

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.
@@ -21,13 +21,13 @@ function getFullPresetPath(presetPath) {
21
21
  let absolutePresetPath;
22
22
  if (presetPath.endsWith(".json")) {
23
23
  absolutePresetPath = require.resolve(presetPath, {
24
- paths: [process.cwd()],
24
+ paths: [__dirname, process.cwd()],
25
25
  });
26
26
  }
27
27
  else {
28
28
  const presetPathWithConfig = node_path_1.default.join(presetPath, "aicm.json");
29
29
  absolutePresetPath = require.resolve(presetPathWithConfig, {
30
- paths: [process.cwd()],
30
+ paths: [__dirname, process.cwd()],
31
31
  });
32
32
  }
33
33
  return fs_extra_1.default.existsSync(absolutePresetPath) ? absolutePresetPath : null;
@@ -22,7 +22,7 @@ function detectRuleType(source) {
22
22
  }
23
23
  try {
24
24
  const packageName = source.split(/[/\\]/)[0];
25
- require.resolve(packageName, { paths: [process.cwd()] });
25
+ require.resolve(packageName, { paths: [__dirname, process.cwd()] });
26
26
  return "npm";
27
27
  }
28
28
  catch (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicm",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "A TypeScript CLI tool for managing AI IDE rules across different projects and teams",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",