mirror of
https://github.com/obra/superpowers.git
synced 2026-04-23 01:49:04 +08:00
refactor: convert skills-core and plugin to pure ESM for module compatibility
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user