fwinit 1.3.5 → 1.3.6

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/index.js +9 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -505,7 +505,7 @@ async function writeRootFiles(info) {
505
505
  "",
506
506
  `- \`backend/\` \u2014 ${info.backend.description}`,
507
507
  `- \`frontend/\` \u2014 ${info.frontend.description}`,
508
- "- `.opencode/` \u2014 skills de opencode (us\xE1 `/create-specs` para generar las specs)",
508
+ "- `.opencode/` \u2014 skills de opencode: `/create-specs` para las specs + biblioteca de dise\xF1o (dark-luxury, minimal-light, neo-brutalist, glassmorphism)",
509
509
  "- `specs/` \u2014 especificaciones del proyecto",
510
510
  "",
511
511
  "## Backend",
@@ -543,6 +543,7 @@ function getCliVersion() {
543
543
  async function installOpenCodeFiles(repoRoot, projectPath) {
544
544
  const skill = join2(repoRoot, "skills", "create-specs", "SKILL.md");
545
545
  const command = join2(repoRoot, "skills", "create-specs", "command.md");
546
+ const designDir = join2(repoRoot, "skills", "design");
546
547
  try {
547
548
  await access(skill);
548
549
  await access(command);
@@ -563,6 +564,13 @@ async function installOpenCodeFiles(repoRoot, projectPath) {
563
564
  command,
564
565
  join2(projectPath, ".opencode", "commands", "create-specs.md")
565
566
  );
567
+ try {
568
+ await access(designDir);
569
+ await cp2(designDir, join2(projectPath, ".opencode", "skills", "design"), {
570
+ recursive: true
571
+ });
572
+ } catch {
573
+ }
566
574
  }
567
575
  async function readTemplatePostInit(dir) {
568
576
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fwinit",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "CLI para crear proyectos desde templates",
5
5
  "type": "module",
6
6
  "bin": {