diff --git a/package.json b/package.json index 8bfa1d1ca..f7cc8f1b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "whiteport-design-studio", - "version": "0.3.1", + "version": "0.3.2", "description": "Whiteport Design Studio - Strategic design methodology for AI-powered workflows", "keywords": [ "design", diff --git a/tools/cli/installers/lib/ide/_base-ide.js b/tools/cli/installers/lib/ide/_base-ide.js index acf24d956..8c0a5ff2e 100644 --- a/tools/cli/installers/lib/ide/_base-ide.js +++ b/tools/cli/installers/lib/ide/_base-ide.js @@ -1,7 +1,7 @@ const path = require('node:path'); const fs = require('fs-extra'); const chalk = require('chalk'); -const yaml = require('yaml'); +const yaml = require('js-yaml'); /** * Base class for IDE-specific setup @@ -138,7 +138,7 @@ class BaseIdeSetup { // Try to extract YAML frontmatter const frontmatterMatch = content.match(/^---\s*\n([\s\S]*?)\n---/); if (frontmatterMatch) { - const frontmatter = yaml.parse(frontmatterMatch[1]); + const frontmatter = yaml.load(frontmatterMatch[1]); return { name: frontmatter.name || path.basename(filePath, '.md'), diff --git a/tools/cli/lib/installer.js b/tools/cli/lib/installer.js index 76efd6043..4bcf4fd56 100644 --- a/tools/cli/lib/installer.js +++ b/tools/cli/lib/installer.js @@ -45,6 +45,13 @@ class Installer { const migrateSpinner = ora(`Migrating _wds/ → ${wdsFolder}/...`).start(); await fs.ensureDir(path.dirname(wdsDir)); await fs.remove(legacyDir); + + // Also remove legacy _wds-learn/ (will be recreated if learning material is selected) + const legacyLearnDir = path.join(projectDir, '_wds-learn'); + if (await fs.pathExists(legacyLearnDir)) { + await fs.remove(legacyLearnDir); + } + migrateSpinner.succeed(`Legacy _wds/ removed — installing fresh at ${wdsFolder}/`); }