whiteport-design-studio 0.3.0 → 0.3.2
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "whiteport-design-studio",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"description": "Whiteport Design Studio - Strategic design methodology for AI-powered workflows",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"design",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const path = require('node:path');
|
|
2
2
|
const fs = require('fs-extra');
|
|
3
3
|
const chalk = require('chalk');
|
|
4
|
-
const yaml = require('yaml');
|
|
4
|
+
const yaml = require('js-yaml');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Base class for IDE-specific setup
|
|
@@ -138,7 +138,7 @@ class BaseIdeSetup {
|
|
|
138
138
|
// Try to extract YAML frontmatter
|
|
139
139
|
const frontmatterMatch = content.match(/^---\s*\n([\s\S]*?)\n---/);
|
|
140
140
|
if (frontmatterMatch) {
|
|
141
|
-
const frontmatter = yaml.
|
|
141
|
+
const frontmatter = yaml.load(frontmatterMatch[1]);
|
|
142
142
|
|
|
143
143
|
return {
|
|
144
144
|
name: frontmatter.name || path.basename(filePath, '.md'),
|
|
@@ -45,6 +45,13 @@ class Installer {
|
|
|
45
45
|
const migrateSpinner = ora(`Migrating _wds/ → ${wdsFolder}/...`).start();
|
|
46
46
|
await fs.ensureDir(path.dirname(wdsDir));
|
|
47
47
|
await fs.remove(legacyDir);
|
|
48
|
+
|
|
49
|
+
// Also remove legacy _wds-learn/ (will be recreated if learning material is selected)
|
|
50
|
+
const legacyLearnDir = path.join(projectDir, '_wds-learn');
|
|
51
|
+
if (await fs.pathExists(legacyLearnDir)) {
|
|
52
|
+
await fs.remove(legacyLearnDir);
|
|
53
|
+
}
|
|
54
|
+
|
|
48
55
|
migrateSpinner.succeed(`Legacy _wds/ removed — installing fresh at ${wdsFolder}/`);
|
|
49
56
|
}
|
|
50
57
|
|
package/tools/cli/lib/ui.js
CHANGED