mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
refactor(skills): unify multilingual skill entrypoints
This commit is contained in:
1 parent
7310b0670f
commit
59520a2e61
26 files changed
+96
-490
No files matched your search
@@ -105,11 +105,9 @@ try {
|
||||
{ cwd: rootDir, stdio: 'inherit' }
|
||||
)
|
||||
|
||||
for (const skillName of ['chatlab-convert', 'chatlab-convert-cn']) {
|
||||
const scriptsDir = path.join(rootDir, 'skills', skillName, 'scripts')
|
||||
mkdirSync(scriptsDir, { recursive: true })
|
||||
copyFileSync(outputPath, path.join(scriptsDir, 'validate-chatlab.mjs'))
|
||||
}
|
||||
const scriptsDir = path.join(rootDir, 'skills', 'chatlab-convert', 'scripts')
|
||||
mkdirSync(scriptsDir, { recursive: true })
|
||||
copyFileSync(outputPath, path.join(scriptsDir, 'validate-chatlab.mjs'))
|
||||
} finally {
|
||||
rmSync(tempDir, { recursive: true, force: true })
|
||||
}
|
||||
Reference in new issue
Block a user