rbin-task-flow 1.1.0 → 1.1.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/lib/install.js
CHANGED
|
@@ -157,6 +157,18 @@ async function copyTaskFlow(targetPath) {
|
|
|
157
157
|
showSuccess('Task Flow directory');
|
|
158
158
|
showInfo('Note: .internal/tasks.json and .internal/status.json are NOT overwritten (your data is safe)');
|
|
159
159
|
|
|
160
|
+
// Criar pasta screens
|
|
161
|
+
const screensDest = path.join(taskFlowDest, 'screens');
|
|
162
|
+
await fs.ensureDir(screensDest);
|
|
163
|
+
showSuccess('Screenshots directory (.task-flow/screens/)');
|
|
164
|
+
|
|
165
|
+
// Copiar arquivo de exemplo para screens se não existir
|
|
166
|
+
const exampleSrc = path.join(taskFlowSrc, 'screens/example.png.txt');
|
|
167
|
+
const exampleDest = path.join(screensDest, 'example.png.txt');
|
|
168
|
+
if (fs.existsSync(exampleSrc) && !fs.existsSync(exampleDest)) {
|
|
169
|
+
await fs.copy(exampleSrc, exampleDest);
|
|
170
|
+
}
|
|
171
|
+
|
|
160
172
|
// Copiar apenas templates, não sobrescrever dados do usuário
|
|
161
173
|
const files = [
|
|
162
174
|
{ name: 'README.md', overwrite: true },
|