create-inox-app 0.2.2 → 0.2.3

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/dist/cli.js +11 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ import os, { constants } from "node:os";
9
9
  import * as tty$1 from "node:tty";
10
10
  import tty from "node:tty";
11
11
  import path, { dirname, extname, join, relative, resolve, sep } from "node:path";
12
- import { appendFileSync, chmodSync, createReadStream, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
12
+ import { appendFileSync, chmodSync, createReadStream, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, statSync, symlinkSync, writeFileSync } from "node:fs";
13
13
  import { fileURLToPath } from "node:url";
14
14
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
15
15
  import { StringDecoder } from "node:string_decoder";
@@ -14583,6 +14583,15 @@ const writeFiles = (projectDir, files) => {
14583
14583
  if (extname(absPath) === ".sh") chmodSync(absPath, 493);
14584
14584
  }
14585
14585
  };
14586
+ const linkSkills = (projectDir) => {
14587
+ const agentsDir = join(projectDir, ".agents", "skills");
14588
+ const claudeSkillsDir = join(projectDir, ".claude", "skills");
14589
+ try {
14590
+ const skills = readdirSync(agentsDir);
14591
+ mkdirSync(claudeSkillsDir, { recursive: true });
14592
+ for (const skill of skills) symlinkSync(join("..", "..", ".agents", "skills", skill), join(claudeSkillsDir, skill));
14593
+ } catch {}
14594
+ };
14586
14595
  const mergeFiles = (target, source) => {
14587
14596
  for (const [key, value] of source) target.set(key, value);
14588
14597
  };
@@ -21100,6 +21109,7 @@ const scaffold = async (config) => {
21100
21109
  mergeFiles(appFiles, renderTemplateDir(claudeAppDir, context, skipSkills));
21101
21110
  }
21102
21111
  writeFiles(appDir, appFiles);
21112
+ linkSkills(appDir);
21103
21113
  s$1.stop(`Scaffolded ${appFiles.size} app files → ${config.projectName}/`);
21104
21114
  s$1.start("Scaffolding kustomize files...");
21105
21115
  const kustomizeTplDir = resolve(templatesDir, "kustomize");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-inox-app",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Scaffold production-ready monorepo projects with one command",
5
5
  "type": "module",
6
6
  "license": "MIT",