any-skills 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -35,5 +35,14 @@ Example:
35
35
  ## Usage
36
36
 
37
37
  ```sh
38
- npm install any-skills
38
+ npm install any-skills --save-dev
39
+ ```
40
+
41
+ ## Git ignore
42
+
43
+ Add the tool-specific shared skill directories to your `.gitignore`:
44
+
45
+ ```
46
+ .claude.skills
47
+ .codex.skills
39
48
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "any-skills",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Share skills between Claude, Codex, and similar tools via a shared .skills directory.",
5
5
  "type": "commonjs",
6
6
  "scripts": {
@@ -64,9 +64,7 @@ function ensureSymlink(linkPath, targetPath) {
64
64
  const resolvedLinkPath = path.resolve(linkPath);
65
65
  const expectedTarget = path.resolve(targetPath);
66
66
  if (resolvedLinkPath === expectedTarget) {
67
- console.warn(
68
- `[any-skills] ${linkPath} resolves to the target; skipping.`
69
- );
67
+ console.warn(`[any-skills] ${linkPath} resolves to the target; skipping.`);
70
68
  return false;
71
69
  }
72
70
 
@@ -213,8 +211,8 @@ function buildLinkMappings({ config, configPath, exists, target }) {
213
211
  );
214
212
  }
215
213
  return {
216
- mappings: defaultLinkTargets.map((target) => ({
217
- linkPath: path.join(rootDir, target),
214
+ mappings: defaultLinkTargets.map((linkTarget) => ({
215
+ linkPath: resolveRootPath(linkTarget, rootDir),
218
216
  targetPath: target,
219
217
  })),
220
218
  error: false,