mirror of
https://github.com/EveryInc/compound-engineering-plugin.git
synced 2026-07-07 18:06:34 +02:00
18 lines
511 B
JavaScript
18 lines
511 B
JavaScript
import path from "path"
|
|
import { fileURLToPath } from "url"
|
|
|
|
const pluginDir = path.dirname(fileURLToPath(import.meta.url))
|
|
const skillsDir = path.resolve(pluginDir, "../../skills")
|
|
|
|
export const CompoundEngineeringPlugin = async () => ({
|
|
config: async (config) => {
|
|
config.skills = config.skills || {}
|
|
config.skills.paths = config.skills.paths || []
|
|
if (!config.skills.paths.includes(skillsDir)) {
|
|
config.skills.paths.push(skillsDir)
|
|
}
|
|
},
|
|
})
|
|
|
|
export default CompoundEngineeringPlugin
|