sdd-tool 1.2.4 → 1.2.5
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/dist/cli/index.js +5 -5
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -21601,14 +21601,14 @@ function convertToSddSpec(spec) {
|
|
|
21601
21601
|
}
|
|
21602
21602
|
async function finalizeSpec(sddRoot, spec) {
|
|
21603
21603
|
try {
|
|
21604
|
-
const
|
|
21605
|
-
|
|
21606
|
-
|
|
21607
|
-
const specPath = path52.join(
|
|
21604
|
+
const featureId = spec.id.includes("/") ? spec.id.split("/").pop() : spec.id;
|
|
21605
|
+
const featurePath = path52.join(sddRoot, ".sdd", "specs", featureId);
|
|
21606
|
+
await ensureDir(featurePath);
|
|
21607
|
+
const specPath = path52.join(featurePath, "spec.md");
|
|
21608
21608
|
const content = convertToSddSpec(spec);
|
|
21609
21609
|
await fs34.writeFile(specPath, content, "utf-8");
|
|
21610
21610
|
return success({
|
|
21611
|
-
id:
|
|
21611
|
+
id: featureId,
|
|
21612
21612
|
domain: spec.domain,
|
|
21613
21613
|
specPath: path52.relative(sddRoot, specPath),
|
|
21614
21614
|
original: spec,
|