diff options
| author | Jesse Vincent <jesse@fsck.com> | 2025-11-22 13:23:05 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2025-11-22 13:23:05 -0800 |
| commit | d92de28150339bf194b45d54ea8f0f6889255b20 (patch) | |
| tree | 88503dba7771cb1d05d59d93dd5117eadaa758d1 /lib | |
| parent | fa53c8f925456bade3781dc4bbd63a9a3f5faeb7 (diff) | |
refactor: convert skills-core and plugin to pure ESM for module compatibility
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/skills-core.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/skills-core.js b/lib/skills-core.js index c77c26f..5e5bb70 100644 --- a/lib/skills-core.js +++ b/lib/skills-core.js @@ -1,6 +1,6 @@ -const fs = require('fs'); -const path = require('path'); -const { execSync } = require('child_process'); +import fs from 'fs'; +import path from 'path'; +import { execSync } from 'child_process'; /** * Extract YAML frontmatter from a skill file. @@ -199,7 +199,7 @@ function stripFrontmatter(content) { return contentLines.join('\n').trim(); } -module.exports = { +export { extractFrontmatter, findSkillsInDir, resolveSkillPath, |
