@supatent/skills 0.2.1 → 0.2.2

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/bin/install.mjs +2 -1
  2. package/package.json +2 -2
package/bin/install.mjs CHANGED
@@ -4,6 +4,7 @@
4
4
  // Copies bundled skill files to .claude/skills/supatent/ with manifest tracking.
5
5
 
6
6
  import { readFile, writeFile, mkdir, copyFile, readdir, stat } from 'node:fs/promises';
7
+ import { realpathSync } from 'node:fs';
7
8
  import { createHash } from 'node:crypto';
8
9
  import { join, dirname, relative, resolve } from 'node:path';
9
10
  import { fileURLToPath } from 'node:url';
@@ -308,7 +309,7 @@ async function main() {
308
309
  // Run main only when executed directly (not when imported for testing)
309
310
  // ---------------------------------------------------------------------------
310
311
 
311
- const isMain = process.argv[1] && resolve(process.argv[1]) === resolve(__filename);
312
+ const isMain = process.argv[1] && realpathSync(resolve(process.argv[1])) === realpathSync(resolve(__filename));
312
313
 
313
314
  if (isMain) {
314
315
  main().catch((err) => {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@supatent/skills",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Claude Code content authoring skills for Supatent CMS",
5
5
  "type": "module",
6
6
  "bin": {
7
- "skills": "bin/install.mjs"
7
+ "supatent-skills": "bin/install.mjs"
8
8
  },
9
9
  "files": [
10
10
  "bin",