@laitszkin/apollo-toolkit 3.14.8 → 3.14.9
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this repository are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [v3.14.9] - 2026-05-16
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Prevent double-date-nesting in `apltk create-specs` when `--output-dir` points to an existing date folder; the handler no longer appends today's date again, avoiding a `YYYY-MM-DD/YYYY-MM-DD/` nested structure.
|
|
10
|
+
|
|
5
11
|
## [v3.14.8] - 2026-05-16
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -139,7 +139,11 @@ Options:
|
|
|
139
139
|
}
|
|
140
140
|
const outputDir = node_path_1.default.resolve(parsed['output-dir'] || 'docs/plans');
|
|
141
141
|
const today = new Date().toISOString().slice(0, 10);
|
|
142
|
-
|
|
142
|
+
// Prevent double-nesting: if outputDir's last component is already today's date,
|
|
143
|
+
// use it directly as the date root rather than appending the date again.
|
|
144
|
+
// This handles the case where --output-dir already points to an existing
|
|
145
|
+
// date folder (e.g. docs/plans/2026-05-16).
|
|
146
|
+
const dateRoot = node_path_1.default.basename(outputDir) === today ? outputDir : node_path_1.default.join(outputDir, today);
|
|
143
147
|
const batchRoot = batchName ? node_path_1.default.join(dateRoot, batchName) : null;
|
|
144
148
|
const outputRoot = batchRoot ? node_path_1.default.join(batchRoot, changeName) : node_path_1.default.join(dateRoot, changeName);
|
|
145
149
|
const outputPaths = TEMPLATE_FILENAMES.map((name) => node_path_1.default.join(outputRoot, name));
|
|
@@ -148,7 +148,12 @@ Options:
|
|
|
148
148
|
|
|
149
149
|
const outputDir = path.resolve(parsed['output-dir'] as string || 'docs/plans');
|
|
150
150
|
const today = new Date().toISOString().slice(0, 10);
|
|
151
|
-
|
|
151
|
+
|
|
152
|
+
// Prevent double-nesting: if outputDir's last component is already today's date,
|
|
153
|
+
// use it directly as the date root rather than appending the date again.
|
|
154
|
+
// This handles the case where --output-dir already points to an existing
|
|
155
|
+
// date folder (e.g. docs/plans/2026-05-16).
|
|
156
|
+
const dateRoot = path.basename(outputDir) === today ? outputDir : path.join(outputDir, today);
|
|
152
157
|
const batchRoot = batchName ? path.join(dateRoot, batchName) : null;
|
|
153
158
|
const outputRoot = batchRoot ? path.join(batchRoot, changeName) : path.join(dateRoot, changeName);
|
|
154
159
|
|
package/package.json
CHANGED