kld-sdd 2.4.11 → 2.4.12

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/lib/init.js +5 -10
  2. package/package.json +1 -1
package/lib/init.js CHANGED
@@ -15,6 +15,11 @@ const path = require('path');
15
15
  const { execSync } = require('child_process');
16
16
  const readline = require('readline');
17
17
  const os = require('os');
18
+ const {
19
+ SKILLS_BUNDLE_NAME,
20
+ OPSX_SKILL_DIRS,
21
+ renderTemplate
22
+ } = require('./skills-bundle');
18
23
 
19
24
  const rl = readline.createInterface({
20
25
  input: process.stdin,
@@ -326,10 +331,6 @@ function copyDir(source, target) {
326
331
  }
327
332
  }
328
333
 
329
- function renderTemplate(content, config, toolKey) {
330
- return require('./skills-bundle').renderTemplate(content, config, toolKey);
331
- }
332
-
333
334
  function copyDirRendered(source, target, config, toolKey) {
334
335
  if (!fs.existsSync(target)) {
335
336
  fs.mkdirSync(target, { recursive: true });
@@ -502,12 +503,6 @@ function overrideOpsxCommands(selectedTools = Object.keys(TOOL_CONFIGS)) {
502
503
  return true;
503
504
  }
504
505
 
505
- const {
506
- SKILLS_BUNDLE_NAME,
507
- OPSX_SKILL_DIRS,
508
- renderTemplate
509
- } = require('./skills-bundle');
510
-
511
506
  /**
512
507
  * 清理旧版扁平 opsx-* skills(迁移到 skills/kld-sdd/ 统一目录)
513
508
  * @param {string[]} selectedTools - 用户选择的编辑器列表
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kld-sdd",
3
- "version": "2.4.11",
3
+ "version": "2.4.12",
4
4
  "description": "KLD SDD OpenSpec 项目初始化工具 - 内置模版一键初始化",
5
5
  "main": "index.js",
6
6
  "bin": {